Error

 Previous Topic Next Topic
 karlon0608 #1 Posted : Thursday, October 17, 2019 4:31:48 PM(UTC) Rank: NewbieGroups: Registered, Registered Users, SubscribersJoined: 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?
 Wanna join the discussion?! Login to your Discussions forum accountor Register a new forum account.
 MS Support #2 Posted : Friday, October 18, 2019 9:06:10 PM(UTC) Rank: Advanced MemberGroups: Moderators, Registered, Registered Users, SubscribersJoined: 10/8/2010(UTC)Posts: 1,707Thanks: 61 timesWas thanked: 142 time(s) in 138 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: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 RSICode:``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.