I have an EA comment that I would like only posted on the chart, the first time it is true. Currently it continually repeats.
Anyway the code is like this...
I had it printing too at first, but while the BuySignal is active it prints every tick!! Too much
I would like it to comment on the original first BuySignal and ignore the others until a NEW BuySig is generated or a SellSig is generated.
How do I get it to not repeat an active signal and only post on the first activation of the signal? The way it is right now, it's hard to tell by the comments when the signal was first active since it keeps repeating while active. Also, Do the EA comments get stored in a file somewhere? Because if so, it will eventually take up quite a bit of memory I think.
Anyway the code is like this...
Inserted Code
if ((BuySignalA) && ((Ask-Bid) <= AvgSpreadHigh))
{
Comment(TimeToStr(TimeCurrent(),TIME_SECONDS), " BUY SIGNAL-A >> BUY POSITION SHOULD BE OPENED OR PREVIOUSLY OPENED ");
// Print(TimeToStr(TimeCurrent(),TIME_SECONDS), " BUY SIGNAL-A >> BUY POSITION SHOULD BE OPENED OR PREVIOUSLY OPENED ");
} I had it printing too at first, but while the BuySignal is active it prints every tick!! Too much
I would like it to comment on the original first BuySignal and ignore the others until a NEW BuySig is generated or a SellSig is generated.
How do I get it to not repeat an active signal and only post on the first activation of the signal? The way it is right now, it's hard to tell by the comments when the signal was first active since it keeps repeating while active. Also, Do the EA comments get stored in a file somewhere? Because if so, it will eventually take up quite a bit of memory I think.