Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 8/9/2019(UTC) Posts: 1
|
Does anyone know how to write formula in Expert Adviser to point out the lowest/highest RSI(14) within a certain period? e.g since 1 Jan, 2019
i think it may need valuesince and lowestsince. Don't know if my logic is right. I have tried to reasch CS, but the formula is too complex. Can any experts help?
|
|
|
|
Rank: Advanced Member
Groups: Moderators, Registered, Registered Users, Subscribers Joined: 10/8/2010(UTC) Posts: 1,960
Thanks: 92 times Was thanked: 155 time(s) in 150 post(s)
|
Originally Posted by: karlon0608 Does anyone know how to write formula in Expert Adviser to point out the lowest/highest RSI(14) within a certain period? e.g since 1 Jan, 2019
i think it may need valuesince and lowestsince. Don't know if my logic is right. I have tried to reasch CS, but the formula is too complex. Can any experts help?
Hi, There could be a few ways to accomplish this, depending on the details. If you just want to know the highest/lowest RSI value of the last X periods (i.e. for Commentary), you could write:
If you want a signal (Symbol) to occur next to the actual price data when the condition is true, you can just compare current RSI to HHV / LLV of RSI Code:HHV(RSI(14),250) = RSI(14)
Code:LLV(RSI(14),250) = RSI(14)
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.