I am trying to keep a count of an event
So I tried
int event =0
If (bullish trigger)
{
event = (event+1);
}
if (bearish trigger)
{
Event = (event-1)
}
If event < 0
Sell blah blah blah
it doesn't seem to be working
I have tried loops using event++1
etc and I am not sure why it won't work
I am using it in OnBarUpdate()
I would also like the event count to show on chart of that is possible, I know this is all pretty simple I am unsure why but my system won't trade when I have the condition (event= -1)
Curious if my logic is flawed?
tia
Comment