I would like to remember the High value of a bar once the condition is met, and then forget that value once a counter condition is met.
Is there a way to remember price values in the script language?
Example:
if (Condition is met)
{
stored value = High[1]
}
if (GetCurrentAsk(0) == stored value)
{
EnterLong()
}
if (Counter condition is met)
{
forget stored value
}
I'm looking forward to any replies and thank you for your time.
Comment