GridTest
-
In the gridtest ea I am trying to open a grid of buy orfers with the same sL and same TP calculated as a multiple of the grid levels (+1) and grid size.
I have tried to optain it in several ways but with no luck. What I am missing?Thank you
-
For all orders to have the same SL (or TP), try this option "Dynamic level (same for all orders)". The difference is that this is a price level.
This is my example: https://fxdreema.com/shared/kd2DBUeP
And this is the result from it: http://prntscr.com/42vhg8 -
__For all orders to have the same SL (or TP), try this option "Dynamic level (same for all orders)". The difference is that this is a price level.
This is my example: https://fxdreema.com/shared/kd2DBUeP
And this is the result from it: http://prntscr.com/42vhg8[/quote:lhyix5zh]Ok something is changed, but now 6 buy order are opened instead of 3 (rounding issues?) calculation seems correct...
-
Ummm... I got 3, it can be seen on the picture

-
__Ummm... I got 3, it can be seen on the picture
[/quote:3pj51hwf]yes the issue start when you calculate the stop loss and take profit level. look at my EA named TheGrid. Just an idea maybe the calculation imvolve to many decimals, but I have not idea how to tund or truncate the result in the formula
-
Ahaa, the problem is in the way blocks 20 and 24 are connected. This cause block 23 to run 2 times, once because of blocks 20 and again because of block 24
-
__Ahaa, the problem is in the way blocks 20 and 24 are connected. This cause block 23 to run 2 times, once because of blocks 20 and again because of block 24[/quote:1wbqnl4k]
Gotch thx