Martingale via add volume ADX used for grid distance issue
-
Hi Guys
I am trying to make an EA that uses martingale via the add volume from pips distance, I would like to add an option to use ADX or maybe ADR so the grid distance will be variable depending on the market conditions but cannot get it to work.
One method worked but the ADX value was positive so only added volume on the wrong side of the trade.
Any help is appreciated.
-
I see some problem here - string vs boolean - not a good idea to compare them like that:

Better select Numeric or even Boolean, but don't use Text.So, are you asking how to make the ADX value negative? Try that:
