Error

 Previous Topic Next Topic
 FeverTrader #1 Posted : Tuesday, June 25, 2019 2:58:01 AM(UTC) Rank: NewbieGroups: Registered, Registered Users, SubscribersJoined: 8/15/2018(UTC)Posts: 2Location: BUDDINAThanks: 1 times Hi All,  I am playing around with some Alerts for an Expert Advisor on a 3 minute chart. I keep getting multiple alerts for the following codeRef(Mov(C,21,S),-1)
 Wanna join the discussion?! Login to your Discussions forum accountor Register a new forum account.
 MS Support #4 Posted : Wednesday, June 26, 2019 3:23:42 PM(UTC) Rank: Advanced MemberGroups: Moderators, Registered, Registered Users, SubscribersJoined: 10/8/2010(UTC)Posts: 1,530Thanks: 45 timesWas thanked: 121 time(s) in 117 post(s) Originally Posted by: FeverTrader Thanks for that, Could you please explain how the throttle function variable is used? And also is there a way to alert for a cross above or cross below, rather than the simple cross? Regards If Recalculate Expert is set to Throttled (as opposed to Live which calculates your formulas with each tick), then instead of potentially getting a pop-up alert with every tick of data, you will get a pop-up when the signal first becomes true, and then you will not get another alert until either a new bar forms, or the throttle time has been exceeded.On a low time frame chart (say 1-minute) you can still get a decent amount of pop-ups if the condition remains true at the end of each minute (when a new bar forms). Considering you could get hundreds of ticks per minute, this still can be a lot less pop-ups though.The Cross function considers Up/Down based on the order of the items inside the cross function. For example:Code:``Cross(MACD(),MOV(MACD(),9,E))`` The above formula triggers when MACD crosses above its 9 period exponential moving average signal line. If you wanted to look for the opposite cross (MACD crossing below its signal line) you would simply reverse their order within the cross function as follows: Code:``Cross(MOV(MACD(),9,E),MACD())`` 1 user thanked MS Support for this useful post. FeverTrader on 6/27/2019(UTC)