fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. doeveR
    3. Posts
    D
    • Profile
    • Following 0
    • Followers 1
    • Topics 7
    • Posts 63
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by doeveR

    • RE: Question on Money Management Buy/Sell

      https://fxdreema.com/shared/ux0Lp1N7d it's simple and no changes are made to Risk, SL or TP.

      posted in Questions & Answers
      D
      doeveR
    • Question on Money Management Buy/Sell

      Hello, I have seen something I can not explain. In my EA I defined parameter Risk, SL and TP. Risk was entered 0.0567, SL was 0.2 and TP 100.0. In a Buy or Sell block I use Risk % of balance - so 0.0567 (No upperlimit set), Stop-Loss mode is % of price - so 0.2 and Take-profit mode is % from Stop-loss.
      During my backtests with a 100K account the profit/loss money amounts are all around 500/600 (+/-) which was what I expected. But someone else got Trade losses of 5000-6000(+/-). I am confused. 100000*0.0567 is indeed 5/6K but in my backtest I got position values that were much smaller. So what is the position value on a 100K account with the values in my example: Risk 0.0567, SL 0.2 en TP 100. How can it be different ?

      posted in Questions & Answers
      D
      doeveR
    • RE: Library Studio

      @jstap said in Library Studio:

      how is your global variable set? If it's not it can't return true.

      My global variable is set by another EA - that one is set , so TradeActive is set to true. My Print(ReturnCheckVar,ReturnTradeActive) shows true,true in my Experts tab. Also my printf(ReturnRalph) shows true. Therefore I don't understand why ReturnRalph in my EA does not have the value true.

      posted in Questions & Answers
      D
      doeveR
    • RE: Library Studio

      It's set to the value of TradeActive (see the code in the Function Global_Check_Trade_ActviveLocalEA)

      posted in Questions & Answers
      D
      doeveR
    • RE: Library Studio

      I think I am missing the point of your question (due to lack of knowledge). In the EA I have the variable ReturnRalph as boolean defined. I defined ReturnRalph as boolean in the Custom Fucntion GlobalCheck_Trade_ActiveLocalEA as shown on the screenshot. What is missing that allows a proper return ?

      posted in Questions & Answers
      D
      doeveR
    • RE: Library Studio

      Unfortunately the variable set in my function is not passed on to my EA:

      image.png

      My printf in the function below says TRUE. The check in my EA gives false for variable ReturnRalph

      image.png

      posted in Questions & Answers
      D
      doeveR
    • RE: Library Studio

      Ah you use a Custom Function named CalculatedLotSize where you pass the value of slPoints to a variable named calculatedLot - which is then available in your EA. Correct ?

      posted in Questions & Answers
      D
      doeveR
    • RE: Library Studio

      This is how I used in in Sudio and then called it (see previous screenshot)
      image.png

      posted in Questions & Answers
      D
      doeveR
    • RE: Library Studio

      Ok, so apparently that should work although it does not seem to work for me. In your example, you show calculatedLot as a double in your FDX EA, right ? I don't see this exact value in your previous screenshot but I gather thery are named EXACTLY the same ?

      posted in Questions & Answers
      D
      doeveR
    • RE: Library Studio

      OK, I understand that you send variable values from your Custom function to the Custom Block (code in Area A). I meant sending variable values to the EA in FXDreema where you used a Custom Block.

      posted in Questions & Answers
      D
      doeveR
    • RE: Library Studio

      I have the following variables defined in my EA
      image.png
      I Check ReturnCheckVar in my EA but I always get back false (I think it remains unchanged)
      In studio I have this code: - ReturnCheckVar is defined as you describe. In the expert tab I see the print: true true
      So it does not seem to work.
      bool TradeActive,ReturnCheckVar;
      ReturnCheckVar=Global_Check_Trade_ActiveLocal(Prefix,TradeActive);
      Print(ReturnCheckVar,TradeActive);
      ~next~

      posted in Questions & Answers
      D
      doeveR
    • RE: Tutorial - Create Custom Blocks with "FXDreema Studio"

      This is my code in Settings (Area A):
      bool TradeActive,ReturnCheckVar;
      ReturnCheckVar=Global_Check_Trade_ActiveLocal(Prefix,TradeActive);
      Print(ReturnCheckVar,TradeActive);
      ~next~
      ReturnCheckVar is defined in my EA as a bool variable. In my Experts Tab I see from the Print, True True. However in my EA the check on TRUE for boolean ReturnCheckVar is not true.

      posted in Tutorials by Users
      D
      doeveR
    • RE: Tutorial - Create Custom Blocks with "FXDreema Studio"

      So in Visual studio I define a varable A (in the area Global Variables, includes or in the area where my logic is as a local variable ?) and in my EA I also create a variable and the value that is assigned in the logic in studio, in my custom block is the readeable in my EA in variable A ?

      posted in Tutorials by Users
      D
      doeveR
    • RE: Tutorial - Create Custom Blocks with "FXDreema Studio"

      I don't understand how you can return a value from within the custom block - back to the calling FXD EA.....So if I define for example 2 input parameters into the Custom Block. I do a calculation for which I would need to write Custom code/function and based on that I want to return two values I can use in my EA ; I can't figure out how to do this. That is the purpose of a block in general, right; do something, compare etc. and then return a value that you can use in your logic.

      posted in Tutorials by Users
      D
      doeveR
    • RE: Library Studio

      I don't understand how you can return a value from within the custom block - back to the calling FXD EA.....

      posted in Questions & Answers
      D
      doeveR
    • RE: Library Studio

      Ok, I get that - from within the custom block you can access variables than you defined in 'regular' FxDreema. So that should be able. I am thinking about the normal block for example Modify Variable where one of the parameters in the variable that you want to receive (from within the block) the value of for example MA period 14. So writing FROM a custom block to a variable in your FXD EA.

      posted in Questions & Answers
      D
      doeveR
    • RE: Library Studio

      How do I "Return" values (into which variables) to FXdreema where you are using the custom blocks ? Do you use parameters defined in Parameters used in Block to return results ?

      posted in Questions & Answers
      D
      doeveR
    • RE: How to get line/MA slope

      @jstap What would be valid values for the LINE_ANGLE parameter ? I tried it and the SLOPE_RESULT seems to be a very small value.
      Should I just use a multiplier in order to let LINE_ANGLE parameter a value between 0-90 (to represent a genuine angle value)?

      posted in Tutorials by Users
      D
      doeveR
    • RE: How to get line/MA slope

      Did this work? I tried the name SkyLightBlue as used in the Draw line but this does not trigger the Sell (as far as I can see). What values did you use for ANGLE_RANGE and LINE_ANGLE ?

      posted in Tutorials by Users
      D
      doeveR
    • RE: Want to create a custom indocator based on fxdreema EA logic

      I am familiar with that but I mean creating something that can be imported in fxdreema under MyIndicators - I load a .MQ5 there and functionality appears as a custom indicator rather than a custom block.

      posted in Questions & Answers
      D
      doeveR
    • 1
    • 2
    • 3
    • 4
    • 1 / 4