1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
// MARKET CYCLES Swing - Thibauld Robin // --------------------------------- // MARKET CYCLE DETECTION Cycle1 = STOCHASTIC[13,8](CLOSE) Cycle2 = STOCHASTIC[21,13](CLOSE) Cycle3 = STOCHASTIC[34,21](CLOSE) // CYCLE ALIGNMENT CycleAlign = Cycle1 > Cycle2 AND Cycle2 > Cycle3 CycleStrength = (Cycle1 - Cycle3) / Cycle3 * 100 // CYCLE MOMENTUM CycleMom1 = Cycle1 - Cycle1[1] CycleMom2 = Cycle2 - Cycle2[1] CycleMom3 = Cycle3 - Cycle3[1] // VOLUME VolCycle = VOLUME / AVERAGE[21](VOLUME) VolStrength = VolCycle * (CycleMom1 > 0) // ENTRY C1 = CycleAlign // Cycles C2 = CycleStrength > 10 // Force C3 = CycleMom1 > 0 AND CycleMom2 > 0 // Momentum C4 = VolStrength > 1.2 // Volume ONCE Pos = 0 ONCE EntryPrice = 0 IF C1 AND C2 AND (C3 OR C4) AND Pos = 0 THEN BUY lotsize CONTRACTS AT MARKET //SET STOP %LOSS 1 - Can be used as protection - Otherwise smart exits after cycle ends Pos = 1 EntryPrice = CLOSE ENDIF IF NOT C1 OR CycleMom1 < 0 AND Pos = 1 THEN SELL AT MARKET Pos = 0 ENDIF |
Share this
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.
ProRealTime ITF files and other attachments :
Filename : download the ITF files
How to import ITF files into ProRealTime platform?
PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials