avoiding consecutive signals

Login or Register

Please login or register in order to view and post in the Forum.

1 post / 0 new
whatstop
Last seen: 9 months 6 days ago
Joined: 07/19/2018 - 03:43
avoiding consecutive signals

Is there any way to store an indicator value as a variable that changes but is recorded historically for use by other indicators? The C# or V# variables seem to only be able to hold the current value of an indicator, and I would like to use the historical value of that indicator on each bar. Can't seem to figure out a way to set up a variable to be used in this regards.

Here is what I am trying to do and the issue I am running in to:

Signal1 = Delta % > X
Signal2 = Lowest price since Signal1 > Piovt price of Signal1
Signal3 = Signal2 was true 1 bar ago and is now false

If Signal2 is true, I do not want Signal1 to be true, but Signal2 references Signal1, so thats not an option.

Trying to avoid more than one Signal1 until the pivot price of Signal1 is taken out. If I could hold this pivot price as a constant I could just compare the current bar to it and look for a breach.

Here is the chart:

https://www.linnsoft.com/charts/rotation-delta-study-2-es

0