Random lot sizes when using percentage of free margin to lots?
-
I have a shared copy of my ea here. Any possibly idea of whats going on...? https://fxdreema.com/shared/DiQTT0BXc
-
This is quite difficult to work out, but I think your candle ID is 1 for both which means you are expecting a candle to be both a bull and a bear. Link blocks out until you find the one that's causing trouble
-
@jstap yeah! It's primarily a "gopher" signal but can go either way because usually a strong candle in the same direction after a previously strong candle can indicate a strong trend so my goal is either or. And I figured it out! I used two formula blocks to calculate "free margin × leverage (adjust: /4)" -> "value: (variable: percentage of margin) × value: 100,000" -> buy/sell "custom value: (variable: percentage of margin)". I think there may be a bug with the "% of free margin -> lots" because manually calculating it with the formula blocks did exactly what I wanted. Thanks for the input!
-
-
@jstap Please Sir what's the meaning candle ID in fx dreamer? And what can be done with it?
-
@princeomughele Create a fresh question rather than using other people's... The current candle is 0, and the previous is 1 every candle going back adds 1, this is used for checking what has happened in the past, and current is still forming
