Reply

variables with reversal conditions

4 replies

Uwe6000

Subscriber, bbp_participant, community, 27 replies.

Visit profile

5 years ago #234573

Hello, I want to create two variables as a condition to calculate the lows in different periods.
The 1st variable “Rev1Low” as the last low: Close [1]> High [2] in the last 6 candles (with BarsBack1?).
The second variable “Rev2Low” as low before last: Close [1]> High [2] in the last 15 candles (with BarsBack2?).
If “Rev1Low”> “Rev2Low” do ….
Unfortunately, it does not work for me. How can I create the variables?
Thank you for your ideas.
Best regards

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

5 years ago #234600

Hello,

you can use the Lowest function integrated in EA Wizard. You can use the BarsBack parameter for this. Let me know if you need any help

0

Uwe6000

Subscriber, bbp_participant, community, 27 replies.

Visit profile

5 years ago #234615

Hello tomas, I know how to connect the Lowest to BarsBack, but how can I use the variable “Rev1Low” instead of the Lowest? Can you give an example? Many Thanks

 

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

5 years ago #234624

Sure, you can check the example attached

0

Uwe6000

Subscriber, bbp_participant, community, 27 replies.

Visit profile

5 years ago #234823

Hello tomas, thanks for the example. I have sent you a mail about this. Best regards

0

Viewing 4 replies - 1 through 4 (of 4 total)