Signal Bressert scalper disappears
Forums › ProRealTime English forum › ProBuilder support › Signal Bressert scalper disappears
- This topic has 7 replies, 3 voices, and was last updated 3 years ago by Friend.
-
-
08/28/2020 at 8:31 AM #142779
Hi,
With the Bressert scalper improved, the signal disappears at certain times and the completed turn is no longer visible. Only a flat line remains.
Could it be if he goes through a lower level?
After some time, depending on the used timeframe, the movement returns.
09/03/2020 at 12:26 PM #14328409/15/2020 at 1:07 PM #144339Hi Nicolas,
A late answer, I had not noticed your question. Here’s the code:
(I changed the original EMA and STO period from 8/13 to 20/14)
1234567891011121314151617181920212223242526272829303132333435EMAperiod=20STOperiod=14once DssBuffer = 50once MitBuffer = 30smoothcoefficient = 2.6 / (1 + EMAperiod)if barindex>STOperiod then//price range definitionsHighRange = Highest[STOperiod](high)LowRange = Lowest[STOperiod](low)delta = Close – LowRangerrange = HighRange-LowRangeif rrange = 0 thenrrange = 1*ticksizeendifMIT = delta/rrange*100.0MitBuffer = ROUND(smoothcoefficient * (MIT – MitBuffer[1]) + MitBuffer[1])//DSS calculationHighRange=0LowRange=stoperiod*1000for i = 0 to Stoperiod doHighRange=Max(MitBuffer[i],HighRange)LowRange=Min(MitBuffer[i],LowRange)nextdelta = MitBuffer – LowRangeDSS = delta/(HighRange – LowRange)*100.0DssBuffer = smoothcoefficient * (DSS – DssBuffer[1]) + DssBuffer[1]endif// 30.144.255 / blue// 255.105.180 / hot pinkRETURN dssbuffer as “DSS Bressert Scalper”, 20 coloured(102,102,102) as “20 level”, 80 coloured(102,102,102) as “80 level”, 50 coloured(102,102,102) as “50 level”Do you still have time to look at my post ‘Trading range recognize and breakout’ from the last weeks?
09/15/2020 at 1:51 PM #144343> For clarity of messages on ProRealCode’s forums, please use the “insert code PRT” button to separate the text of the code part! Thank you! <<
🙂09/15/2020 at 1:55 PM #144344Try (not tested) this line 8:
1if barindex>max(STOperiod,EMAperiod) then09/15/2020 at 6:51 PM #14437009/16/2020 at 12:06 PM #144426Division by zero issue in DSS calculation, the below code should fix the issue:
1234567891011121314151617181920212223242526272829303132333435EMAperiod=20STOperiod=14once DssBuffer = 50once MitBuffer = 30once smoothcoefficient = 2.6 / (1 + EMAperiod)if barindex>max(EMAperiod,STOperiod) then//price range definitionsHighRange = Highest[STOperiod](high)LowRange = Lowest[STOperiod](low)delta = Close - LowRangerrange = HighRange-LowRangerrange = max(rrange,1*ticksize)MIT = delta/rrange*100.0MitBuffer = ROUND(smoothcoefficient * (MIT - MitBuffer[1]) + MitBuffer[1])//DSS calculationHighRange=0LowRange=1000for i = 0 to Stoperiod-1 doHighRange=Max(MitBuffer[i],HighRange)LowRange=Min(MitBuffer[i],LowRange)nextdelta = MitBuffer - LowRangeDSS = delta/(max(1*ticksize,HighRange - LowRange))*100.0DssBuffer = smoothcoefficient * (DSS - DssBuffer[1]) + DssBuffer[1]endif// 30.144.255 / blue// 255.105.180 / hot pinkRETURN dssbuffer as "DSS Bressert Scalper", 20 coloured(102,102,102) as "20 level", 80 coloured(102,102,102) as "80 level", 50 coloured(102,102,102) as "50 level"09/17/2020 at 8:57 PM #144591 -
AuthorPosts