Code: Select all
if ((UseADX) && (!UseHGI))
{
Alert("TRUE");
}
else
{
Alert("FALSE");
}
A comment at the top of the function is
TradeComment = “”;
Ensuring this field is reset every pass thru.
The function then proceeds to populate the field with an appropriate comment based on signal service selected before modifying the trade AND opening a new one with this comment.
In this particular test I am doing ONLY HGI signals are switched on and the construct above gives a False alert when I test it. (As expected !)
Problem
The attached screen shot shows two comment outputs coming from processing in the True result block. The ones with ADX
I’m beating my head on the wall. How can this be ?
Charles
Edit - I was resetting the variable by TradeComment = “”; (no space between the quotes)
I have now changed it to TradeComment = “ ”; (A space in between the quotes) - is this relevant or is my brain in need of medication ?