Volatility Scalper S1 V01
Forums › ProRealTime English forum › ProOrder support › Volatility Scalper S1 V01
- This topic has 48 replies, 10 voices, and was last updated 5 years ago by
robertogozzi.
-
-
04/06/2020 at 11:32 AM #124819
can you post the code or the ITF ? thank you
04/06/2020 at 12:30 PM #124836The code is on the original post on Page 1.
1 user thanked author for this post.
04/06/2020 at 12:34 PM #124838Try to add a a defparam preloadbards = 1000 at the top of the code.
You should also calculate your position size only before entering a new order, because now the “n” variable is calculating on each bar, even if you don’t meet the requirement to open a new position at market. So move the martingale code before line 79 and 91.
Now it’s working! About calculating on every bar is useless, but could make it calculate only if Cbuy or Csell is true to don’t duplicate the 15 rows of code 🙂
Good morning,
The minimum stop this morning is 1095 point see attached picture
Haha that’s perfect for a scalp code!
04/06/2020 at 4:32 PM #124901I’m quite puzzled by the result between demo and backtest.. They are really different.. regarding the candles for example.. thus, the result..
it makes me say that the strategy on 1 second is very difficult.. especially in these time and this current volatility !
i doubt the transmission time of the order until IG platform.. , the spread, volatility.. and so one..
it takes time to perfect this strategy using volatility indicator…
if you use this strategy, i’m curious to have your feelings..
04/06/2020 at 5:40 PM #12491404/06/2020 at 5:53 PM #124916Have you tried re-optimise of the 1 Sec Strategy 1 time every day or at least 1 time every 2 days?
There are 86,400 1 x second bars in a 24 hour period.
Wouldn’t you, for example, re-optimise a 1 x hour TF Strategy after 14 years (86,400 1 x hour bars = 14.4 years)
04/06/2020 at 6:36 PM #124920@grahal
you are right but my goal is to not re-optimize every day
when i will be on the top of the mountain, i will not have my computer to do it.. 🙂
but regarding the result, even within a day, not the same result with this f…king volatility.. 😉
It was too good to have 8% per day..
i will let in run in demo… “Renko is maybe the graal for this unit.. ” i’m going to try some tricks to optimize the boxsize and why not turnaround strategy with renko (after x green box or red box.. ), and M top or W bottom
04/06/2020 at 9:29 PM #124935SET STOP pLOSS 5
trailingstart = 15 //trailing will start @trailinstart points profit trailingstep = 5 /
Did you do a decent backtest with tick by tick enabled (very important tick by tick enabled, useless without)?
With SL of 5 and TS of 15 and a step of 5 then nearly all trades will get stopped out as there is not enough room for retrace etc.
Even on a 1 sec TF, a Strategy needs room to allow for fib retrace; unless it’s a true Scalper … but until we get Arrays working I can’t see us having a true scalper??
1 user thanked author for this post.
04/07/2020 at 9:53 AM #12498004/07/2020 at 10:30 AM #124989initial SL, trailing and treshold updated
Looks well good (43 out of 43!) … you going to share your settings please?
Did you also make any other changes?
04/07/2020 at 10:48 AM #124996threshATRPeriod = 4
SET STOP pLOSS 300
trailingstart = 15 //trailing will start @trailinstart points profit
trailingstep = 7 //trailing step to move the “stoploss”last test, with DJI 2$, spread 2
i just have a conscience problem with the initial stop.. i have a dilemma between this high value of SL or to change it with ATR.. but results aren’t same
Do you have an idea to use good calculation of ATR for initial stop ? or maybe tt include an ATRS too
************************
ATR Trailing Stops Setup
Typical ATR time periods used vary between 5 and 21 days. Wilder originally suggested using 7 days, short-term traders use 5, and longer term traders 21 days. Multiples between 2.5 and 3.5 x ATR are normally applied for trailing stops, with lower multiples more prone to whipsaws.
The default is set as 3 x 21-Day ATR.
Closing Price is set as the default option. The alternative is HighLow (see Formula below).
See Indicator Panel for directions on how to set up an indicator — and Edit Indicator Settings to change the settings.
ATR Trailing Stops Formula
Trailing stops are normally calculated relative to closing price:
- Calculate Average True Range (“ATR”)
- Multiply ATR by your selected multiple — in our case 3 x ATR
- In an up-trend, subtract 3 x ATR from Closing Price and plot the result as the stop for the following day
- If price closes below the ATR stop, add 3 x ATR to Closing Price — to track a Short trade
- Otherwise, continue subtracting 3 x ATR for each subsequent day until price reverses below the ATR stop
- We have also built in a ratchet mechanism so that ATR stops cannot move lower during a Long trade nor rise during a Short trade.
The HighLow option is a little different: 3xATR is subtracted from the daily High during an up-trend and added to the daily Low during a down-trend.
1 user thanked author for this post.
04/07/2020 at 11:28 AM #125001hello
I copy the code from page 1 but it doesn’t work. can you post the code again with the last modifications so that I test in my turn? thank you very kindly Bertrand
04/07/2020 at 11:35 AM #125002Thank You for sharing.
It be good if you can get some reasonable performance from Shorts only.
Reason: DJI has had a good couple of days for Longs, but it will turn down and unless a System can cope with Shorts also then Profit may turn into a Loss of it all?
It is good to show all positions on screen shots (not double up / hide under a screen shot as you have ) as probably your 43 out of 43 are all Longs?? So maybe, just maybe, your settings may not stand up to a downturn? But then again, this is why I have come round to a daily oprimisation … so settings keep up with events / price action?
Heck if I was making consistent money because of it … I would optimise every hour!? 🙂
04/07/2020 at 11:47 AM #125003Re Stops … have you tried SuperTrend or Parabolic SAR … you can optimise the settings of these Indicators and if they work they are an easy bit of code to pop in to a System to Filter on Entry and use as a dynamic Stop for Exit?
Better still if the above work on default settings as the herd would be in and out of default settings, but it’s surprising how much different results can be when the settings are optimised.
04/07/2020 at 12:39 PM #125017not double up / hide under a screen shot
Btw I didn’t mean that you were trying to hide anything from us … bad choice of words on my part, apologies! 🙂
-
AuthorPosts
Find exclusive trading pro-tools on
The topic ‘Volatility Scalper S1 V01’ is closed to new replies.