OMX30 My first automatic system
Forums › ProRealTime English forum › ProOrder support › OMX30 My first automatic system
- This topic has 16 replies, 4 voices, and was last updated 7 years ago by Joachim Nilsson.
-
-
02/06/2017 at 9:19 AM #24042
My first post here.
This works i Sweden omx30 in PRT 10.3 in tick by tick mode.
Have i missed something?
12345678910111213141516171819202122232425262728293031323334353637383940// Definition of code parametersDEFPARAM CumulateOrders = False // Cumulating positions deactivated// The system will cancel all pending orders and close all positions at 0:00. No new ones will be allowed until after the "FLATBEFORE" time.DEFPARAM FLATBEFORE = 091800// Conditions to enter long positionsindicator1 = BollingerDown[20](close)c1 = (close CROSSES UNDER indicator1)IF c1 THENBUY 1 CONTRACT AT MARKETENDIF// Conditions to exit long positionsindicator2 = BollingerUp[20](close)c2 = (close CROSSES OVER indicator2)IF c2 THENSELL AT MARKETENDIF// Conditions to enter short positionsindicator3 = BollingerUp[20](close)c3 = (close CROSSES OVER indicator3)IF c3 THENSELLSHORT 1 CONTRACT AT MARKETENDIF// Conditions to exit short positionsindicator4 = BollingerDown[20](close)c4 = (close CROSSES UNDER indicator4)IF c4 THENEXITSHORT AT MARKETENDIF// Stops and targetsSET STOP pLOSS 3SET TARGET pPROFIT 602/06/2017 at 9:37 AM #2404502/06/2017 at 9:55 AM #24050I tried your code on all timeframes and I get the same result every time. -100%. Have you added spread? I use 2p spread when I work with OMX.
Also, small stops and profits are rarely profitable even if we would like it to be that way…
02/06/2017 at 10:05 AM #2405202/06/2017 at 10:16 AM #24054What timeframe are you running? If it´s a complete intradaysystem on the lower timeframes you can probably test it with 0,5p spread but when you have susch a small stop i would be afraid for slippage and would not go under 1p spread. But that´s just me!
02/06/2017 at 10:25 AM #2405502/06/2017 at 10:32 AM #2405602/06/2017 at 10:37 AM #24058This is my result with 0.5p spread – which I think is too little since it´s not an intraday system.
02/06/2017 at 10:45 AM #2406102/06/2017 at 10:51 AM #24063Then you have too keep on working with it! 🙂
For OMX and a intraday system (090000-173000) I would go with 1p spread and 2p spread if it shops in all hours.
02/06/2017 at 12:04 PM #2407702/06/2017 at 12:17 PM #2408202/06/2017 at 1:01 PM #24093Ok, what do you think about this system.
I go with the”insert PRT code” button this time!1 Hour OMX30
Spread 1 p12345678910111213141516171819202122232425262728293031323334353637383940// Definition of code parametersDEFPARAM CumulateOrders = False // Cumulating positions deactivated// Conditions to enter long positionsindicator1 = BollingerDown[20](close)c1 = (close CROSSES UNDER indicator1)IF c1 THENBUY 5 CONTRACT AT MARKETENDIF// Conditions to exit long positionsindicator2 = Average[20](close)indicator3 = Average[50](close)c2 = (indicator2 CROSSES OVER indicator3)IF c2 THENSELL AT MARKETENDIF// Conditions to enter short positionsindicator4 = BollingerUp[20](close)c3 = (close CROSSES OVER indicator4)IF c3 THENSELLSHORT 5 CONTRACT AT MARKETENDIF// Conditions to exit short positionsindicator5 = Average[50](close)indicator6 = Average[20](close)c4 = (indicator5 CROSSES UNDER indicator6)IF c4 THENEXITSHORT AT MARKETENDIF// Stops and targetsSET STOP pLOSS 3SET TARGET pPROFIT 402/06/2017 at 1:50 PM #24099Looks the same too me. And I still think your stops is too small on a 1hour timeframe.
02/06/2017 at 3:47 PM #24119 -
AuthorPosts
Find exclusive trading pro-tools on