I'm not sure if this is even possible??
I'm using a Variable0 for an entry condition and switching it from (Variable0 == 1) when true to (Variable0 == 0) when its not true.
Although here comes the kicker, I want to index or declare that this event happened one bar ago,
So that I can turn off the entry condition (true) on the Close[1] of the next bar after the condition becomes true.
And/Or I want to limit the entry condition somehow to only one bar, like this:
if (Variable0 == 1) [ previousBar ] // This line will throw an error code though
{
(Variable0 == 0)
}
Until another event happens inbetween like a downtrend indicator, maybe something like this:
if (Variable1 == 1) || (Variable2 == 1)
{
}
Please help!
I need this strategy to be more verbose!!

Comment