fx pair went crazy high on spreads
At what time and to what value?
Please can you optimise the Brick Size and trailingstoptype over 200k and post the values on here.
Around 10:45 PM Italian Time, EURUSD went up to 5/6 spread pts.
And as i said, also others fx pairs went up, but i don’t remember the exact spread.
In the attachments the optimization you asked for. A1 is the trailingstoptype and A1 is the boxsize.
Better still if you comment out the Flat before / after … images 3 and 4.
This was a flawed judgement on my part, apologies!
Yes the results were better but probably only because I had a fixed spread = 1 in the backtester!
As pointed out by Francesco, the spread on eurusd went to > 5 at 9:45 ish (UK Time).
I hadn’t researched overnight spreads as I’ve not used eurusd for quite a while … my enthusiasm blinded me! 🙂
Little 200k backtest of the previous days where it was not possible to test in demo due to the spreads. (Last Paul’s Version with renko=3 and boxsize=20)
Positionsize=0.2
PaulParticipant
Master
@Francesco I haven’t looked yet. on eurusd, but for the dji it seems, although nice, a small stoploss doesn’t work.
I agree Paul, until spread goes back to 2.4 / 1.6 on the DJI the Renko is a dead duck unless we can get average gain per trade well above current spread = 11.6 / 6.6.
I note though that spreads overall are heading back down … maybe next week we will see less madness and more like normal trading?
@Grahal of course at these actual spreads is a madness work and run on dow 1 sec renko.
I just did a 200k backtest for information with 2.4 spread since I suppose many of you have not run the strategy on live demo.
I just did a 200k backtest
Yes it is very useful you doing 200k backtests for us all … thank you.
Yeah I turned my 1 sec DJI off until better times.
But with different settings or a tweaked strategy I think the 1 sec could live again … even on DJI?
I think Paul may be working on a new version?
I think it’s not easy to work on these 1 sec strategies, because the backtest frame to work on is very short.
For example: Paul’s last version in 200k last week made 4 consecutive profts days, while this week 4 consecutive losses.
Putting myself in the shoes of an expert coder like paul, I wouldn’t know how to optimize the strategy not having a longer frame to observe. How can i know that my version in super profitable last 3 days but maybe 6 days ago was very bad?
@nonetheless said to me that “Renko doesn’t have a time component to it, only price and direction”, but the problem is not that to better optimize the value of a strategy you must always know and work on more data as possible?
this week 4 consecutive losses
to better optimize the value of a strategy you must always know and work on more data as possible?
Yeah well my intention was / is to optimise every day! 🙂
I guess it is a different way of thinking?
Seconds in a day = 86,400 bars … so this is 86,400 green and red candles and mini up and down trends and flat periods etc?
Scale that up to hourly bars and 86,400 bars = 14 years worth of trading days?? 🙂
With the results of the last week, one year would be enough 😀
PaulParticipant
Master
a try to calculate the spread (& custom slippage) based on the open of the market order bar timebased.
// spread wallstreet
if time > 090000 and time <= 153000 then
spreaddji=2.4
elsif time > 153000 and time <= 220000 then
spreaddji=1.6
elsif time > 221500 and time <= 223000 then
spreaddji=9.8
elsif time > 230000 and time <= 235959 then
spreaddji=9.8
elsif time = 000000 then
spreaddji=9.8
else
spreaddji=3.8
endif
spreaddji=spreaddji/2
// orderhandling
if orderhandling then
once orderprice=close // prevent graph orderprice at 0 at start chart
offsetvalue=((close/10000)*orderoffset)*pointsize // adjustment spread & slippage
if longonmarket and not longonmarket[1] then
orderprice=open+offsetvalue+spreaddji
elsif shortonmarket and not shortonmarket[1] then
orderprice=open-offsetvalue-spreaddji
endif
if longonmarket then
pp=((close/orderprice)-1)*100
elsif shortonmarket then
pp=((orderprice/close)-1)*100
endif
else
once orderprice=close // prevent graph orderprice at 0 at start chart
orderprice=tradeprice(1)
if longonmarket then
pp=((close/orderprice)-1)*100
elsif shortonmarket then
pp=((orderprice/close)-1)*100
endif
endif
PaulParticipant
Master
and again
once orderhandling = 1 // [0] default; [1] based on open v/d market order
once orderoffset = 1 // % average slippage & spread points if above=[1]
// spread wallstreet
if time > 090000 and time <= 153000 then
spreaddji=2.4
elsif time > 153000 and time <= 220000 then
spreaddji=1.6
elsif time > 221500 and time <= 223000 then
spreaddji=9.8
elsif time > 230000 and time <= 235959 then
spreaddji=9.8
elsif time = 000000 then
spreaddji=9.8
else
spreaddji=3.8
endif
spreaddji=spreaddji/2
// orderhandling
if orderhandling then
once orderprice=close // prevent graph orderprice at 0 at start chart
offsetvalue=((close/10000)*orderoffset)*pointsize // adjustment spread & slippage
if longonmarket and not longonmarket[1] then
orderprice=open+offsetvalue+spreaddji
elsif shortonmarket and not shortonmarket[1] then
orderprice=open-offsetvalue-spreaddji
endif
if longonmarket then
pp=((close/orderprice)-1)*100
elsif shortonmarket then
pp=((orderprice/close)-1)*100
elsif not onmarket then
pp=0
endif
else
once orderprice=close // prevent graph orderprice at 0 at start chart
orderprice=tradeprice(1)
if longonmarket then
pp=((close/orderprice)-1)*100
elsif shortonmarket then
pp=((orderprice/close)-1)*100
elsif not onmarket then
pp=0
endif
endif
pp=pp
if onmarket then
once sl=0.5
once pt=undefined
if longonmarket then
slvalue=orderprice-(sl*(orderprice/100))
sell at slvalue stop
endif
if shortonmarket then
slvalue=orderprice+(sl*(orderprice/100))
exitshort at slvalue stop
endif
if longonmarket then
ptvalue=orderprice+(pt*(orderprice/100))
sell at ptvalue limit
endif
if shortonmarket then
ptvalue=orderprice-(pt*(orderprice/100))
exitshort at ptvalue limit
endif
endif
Did you tested this “spread finder”? It would be appliable also on fx pairs?
PaulParticipant
Master
yes i’am testing 10 sec with above & trendtrading.
a pic of made yesterday and first one made just now.
the spreadfix can’t be put on forex, even after changing spread values, just like the trailingstop isn’t suitable. It needs some changes.