Gann Market Model Short Term Correction strategy / M1 TIMEFRAME
Forums › ProRealTime English forum › ProOrder support › Gann Market Model Short Term Correction strategy / M1 TIMEFRAME
- This topic has 2 replies, 1 voice, and was last updated 7 years ago by
noisette.
Viewing 3 posts - 1 through 3 (of 3 total)
-
-
07/16/2018 at 11:38 PM #76102
Thanks Odin sharing you strategy:
I made some tests with M1 timeframe and DAX and results are interesting.
Main modifications:
- Average periods are différents.
- Adding a stoploss.
- Exit if C10 = 1 instead of 2.
- Open trade during open market.
- Exit at 10pm.
- No trade friday.
- No gain reinvesting.
First tests with long strategy and have to test short trades.
Regards.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687// Festlegen der Code-ParameterDEFPARAM CumulateOrders = False // Kumulieren von Positionen deaktiviertn = 1//short terma1= ExponentialAverage[5](high)[1]b1=ExponentialAverage[5](low)[1]if customclose > a1 thenc1 = 1ElseIF customclose < b1 thenc1=-1endifENDIFif c1= -1 thenD1 = a1ELSED1=b1endifa2= ExponentialAverage[130](high)[1]b2=ExponentialAverage[130](low)[1]if customclose > a2 thenc2 = 1ElseIF customclose < b2 thenc2=-1endifENDIFif c2= -1 thenD2 = a2ELSED2=b2endifa3= ExponentialAverage[200](high)[1]b3= ExponentialAverage[200](low)[1]if customclose > a3 thenc3 = 1ElseIF customclose < b3 thenc3=-1endifENDIFif c3= -1 thenD3 = a3ELSED3=b3endifif D1 < close thenresult = 1elseresult = 0endifif D2 < close thenresult1 = 1elseresult1 = 0endifif D3 < close thenresult2 = 1elseresult2 = 0endifc10 = (result+result1+result2)// Bedingungen zum Einstieg in Long-PositionenIF c10 > 2 and time >= 091500 and time < 173100 AND DAYOFWEEK <> 5 THENBUY n shares AT MARKETENDIF// Bedingungen zum Ausstieg von Long-PositionenIF c10 < 2 or time >220000 THENSELL AT MARKETENDIFSET STOP LOSS 151 user thanked author for this post.
07/19/2018 at 10:54 PM #76356And herewith the cod for short trades.
I have only inverse the strategy and changed the stop loss value.
I you have ideas to improve the strategy let me know.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384// Festlegen der Code-ParameterDEFPARAM CumulateOrders = False // Kumulieren von Positionen deaktiviertn = 1//short terma1= ExponentialAverage[4](high)[1]b1=ExponentialAverage[4](low)[1]if customclose > a1 thenc1 = 1ElseIF customclose < b1 thenc1=-1endifENDIFif c1= 1 thenD1 = b1ELSED1=a1endifa2= ExponentialAverage[130](high)[1]b2=ExponentialAverage[13O](low)[1]if customclose > a2 thenc2 = 1ElseIF customclose < b2 thenc2=-1endifENDIFif c2= 1 thenD2 = b2ELSED2=a2endifa3= ExponentialAverage[200](high)[1]b3= ExponentialAverage[200](low)[1]if customclose > a3 thenc3 = 1ElseIF customclose < b3 thenc3=-1endifENDIFif c3= 1 thenD3 = b3ELSED3=a3endifif D1 > close thenresult = 1elseresult = 0endifif D2 > close thenresult1 = 1elseresult1 = 0endifif D3 > close thenresult2 = 1elseresult2 = 0endifc10 = (result+result1+result2)// Bedingungen zum Einstieg in Long-PositionenIF c10 > 2 and time >= 091500 and time < 173100 AND DAYOFWEEK <> 5 THENSELLSHORT n shares AT MARKETENDIF// Bedingungen zum Ausstieg von Long-PositionenIF c10 < 1 or time >220000 THENEXITSHORT AT MARKETENDIFSET STOP LOSS 20Regards.
07/19/2018 at 10:57 PM #76359 -
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)