logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
karlon0608  
#1 Posted : Thursday, October 17, 2019 4:31:48 PM(UTC)
karlon0608

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?

MS Support  
#2 Posted : Friday, October 18, 2019 9:06:10 PM(UTC)
MS Support

Rank: Advanced Member

Groups: Moderators, Registered, Registered Users, Subscribers
Joined: 10/8/2010(UTC)
Posts: 1,584

Thanks: 50 times
Was thanked: 125 time(s) in 121 post(s)
Originally Posted by: karlon0608 Go to Quoted Post

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:

Code:
HHV(RSI(14),250)

Code:
LLV(RSI(14),250)

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
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.