Hello Family,i have looked also in the forum,but could not find solution.I want my EA to take a sell position at until a certain distace from an Object on chart.No trades should be taken above that distance in pips.Thanks.
-
Hello Family,i have looked also in the forum,but could not find solution.I want my EA to take a sell position at until a certain distace from a moving average.No trades should be taken above that distance in pips.Thanks.https://fxdreema.com/shared/7GKrwxEAc
-
By having a cross especially above a condition and a no position block means it can only place 1 trade
-
Not sure if I quite understand you sir. Can I see an example of this?
-
A cross is likely to happen once in a candle, even if price bounces the distance will be the same, so checking this above distance is pointless, check distance then the cross. The no position block will not pass if another position has been created... by pass I mean moving on to the next block
-
Thanks a lot sir,let me do that.
-
@Kg1 If you remove the once no position block you will get many trades together, set a reason to place a trade, something like once per bar
-
I have realized that the EA still takes trades even beyond the specified distance.I think there is something that i dont do correctly on the "Check Distance "block.I dont have a problem with the number of trades taken at a time.If i check distance between two moving averages,then i dont experience problems.My problem is i dont know how to express lets say 100 points below 100 Moving Average.
-
I would, high (ma price) - ask price (will give you the distance in points) is greater than x.xx. If so place the trade