When I used fixed text, like: ExitLong(Qty, "ADX_XLM_Stop No New High", "ADX_ELS_Strong Uptrend");
where "ADX_XLM_Stop No New High" is Exit Name and "ADX_ELS_Strong Uptrend" is Entry Name.
However, if I change it to: ExitLong(Qty, NameXL, "ADX_ELS_Strong Uptrend"), it doesn't give me correct Exit name, and Exit name is "Close position"
NameXLCond = (MAXLCond == true ? "MAEXit" : STickXLCond == true ? "StopTick" : "");
NameXL = "ADX_XLM_" + NameXLCond
Both of the latter values are defined as string.
So, the result I want to achieve is this: If NameXLCond = "MAExit", then Exit name (from NameXL variable) should be "ADX_XLM_MAExit".
How can this be done?
Comment