Asian session high/low trading strategy, improvement ideas welcome!
Forums › ProRealTime English forum › ProOrder support › Asian session high/low trading strategy, improvement ideas welcome!
- This topic has 11 replies, 3 voices, and was last updated 5 years ago by Vonasi.
Tagged: BreakOut
-
-
03/17/2019 at 8:42 AM #93880
Dear all
I came up with the idea to create a short trading strategies that will use the asian high/low of the day as trigger for the rest of the forex trading day.
At the first glance the code looks good, but I don’t like the sharp decline you see in the end of the chart.
Any ideas how to improve the code is very welcome.
Thanks
03/17/2019 at 9:30 AM #9388703/17/2019 at 11:14 AM #93889version 112345678910111213141516171819202122232425262728293031323334353637defparam cumulateorders = falseonce vHoch = 000000once vTief = 999999kStart = 000000kEnde = 070000if time > kStart and time < kEnde thenif high > vHoch thenvHoch = highendifif low < vTief thenvTief = lowendifendifif time > kEnde and time < 220000 thenif close crosses over vHoch thenbuy 1 contracts at marketendifif close crosses under vTief thensellshort 1 contracts at marketendifendifif time = 220000 thenvHoch = 000000vTief = 999999endif03/17/2019 at 11:15 AM #9389003/17/2019 at 11:22 AM #9389103/17/2019 at 11:32 AM #93892I did some analysis on the charts and also regarding fake moves. so it’s better – much better to add the final trigger mark 3 pips above high , lower low.
the revisted code looks now like this:
version 212345678910111213141516171819202122232425262728293031323334353637defparam cumulateorders = falseonce vHoch = 000000once vTief = 999999kStart = 000000kEnde = 080000if time > kStart and time < kEnde thenif high > vHoch thenvHoch = highendifif low < vTief thenvTief = lowendifendifif time > kEnde and time < 220000 thenif close crosses over vHoch+0.003 thenbuy 1 contracts at marketendifif close crosses under vTief-0.003 thensellshort 1 contracts at marketendifset target pprofit 20endifif time = 220000 thenvHoch = 000000vTief = 999999endif03/17/2019 at 11:36 AM #93894Nicolas good point. To be honest I haven’t thought about it. But as you see in v2 I added a TP of 20pips now.
Yes, maybe additional profit could be generated by placing a “smart” stop loss fx here as well.
Any suggestions folks?
03/17/2019 at 4:17 PM #93900Basically what you have coded is a break out strategy that only trades during the European and US sessions on breakouts of the Asian session high and low. This will always work better in trending markets than in sideways markets so adding a market sentiment filter of some sort might help. Also separating the strategy into two strategies – a long only and a short only might also be beneficial as when the Asian session ends with very close high and low then it is very likely that you will open a trade and quickly get stopped out in a reversal – and possibly many times! Having separate strategies allows you to play a little with different stop ideas other than relying on a breakout in the opposite direction for a stop which could be very close or very far away depending on Asian session volatility.
1 user thanked author for this post.
03/17/2019 at 6:27 PM #93901You could also make some data mining (stats) about how orders are performing depending of the High/Low range. Partial closure at predetermined level (e.g. 20 pips profit, next major round level, pivot points, ..) and let the rest run in profit could argue in favor of improvements?
1 user thanked author for this post.
03/17/2019 at 11:17 PM #93910You could also make some data mining (stats) about how orders are performing depending of the High/Low range. Partial closure at predetermined level (e.g. 20 pips profit, next major round level, pivot points, ..) and let the rest run in profit could argue in favor of improvements?
Are you suggesting simulating trades to match TP and SL to current market volatility? Sounds right up my street although so far I have found that it as badly lagging as a very lagging indicator from my tests so far.
Your second suggestion of partial closure would be interesting to test but PRT currently don’t allow us to run this live so it might be wasted effort if you want to run the idea automatically.
03/18/2019 at 8:59 AM #93920Basically what you have coded is a break out strategy that only trades during the European and US sessions on breakouts of the Asian session high and low.
> YESThis will always work better in trending markets than in sideways markets so adding a market sentiment filter of some sort might help.
-> Could you give me a hint which sentiment filter you think?Also separating the strategy into two strategies – a long only and a short only might also be beneficial as when the Asian session ends with very close high and low then it is very likely that you will open a trade and quickly get stopped out in a reversal – and possibly many times! Having separate strategies allows you to play a little with different stop ideas other than relying on a breakout in the opposite direction for a stop which could be very close or very far away depending on Asian session volatility.
-> Totally agree. But how to accomplish this in PRT? I cannot open long euro and at the same time short euro. Yes, I could go 10x euro mini long and hedge by 1x euro short or play with options – as I do manually. In general – automatic hedging is very tricky or almost impossible with PRT I guess – as we are not able to monitor/trade more than 1 financial instrument withing one algo code.03/18/2019 at 12:17 PM #93940I’m afraid I can’t tell you which sentiment filter but it could be something as simple as a longer term moving average or anyone of the multitude of filters in the library. Maybe jebus89’s idea being discussed here might be a starting point for testing:
https://www.prorealcode.com/topic/higher-timeframes-bollinger-filter/
As far as I am aware it is possible to be both long in one strategy and short in another on an instrument. However I believe that if your account is a limited risk account then you can’t do this.
-
AuthorPosts
Find exclusive trading pro-tools on