US Russel 2000 cash – Consecutive bullish or bearish candlesticks
Forums › ProRealTime English forum › ProOrder support › US Russel 2000 cash – Consecutive bullish or bearish candlesticks
- This topic has 1 reply, 2 voices, and was last updated 7 years ago by
mr blue.
Viewing 2 posts - 1 through 2 (of 2 total)
-
-
01/18/2018 at 5:53 PM #59828
The same applies to this post as my other post (Consecutive bullish or bearish candlesticks – DAX)
I ran this code since 7 Dec 2017 (as a test phase on demo account before going live with it) and so far it has delivered £302. Just over a month.
1 minute time frame with 1 mini contracts.May be someone can some changes or even test it yourself and use it as is.
US Russel 2000 cash
Timeframe – 1 min
Contract – 1 x mini.US Russel 2000 cash - Consecutive bullish or bearish candlesticks1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889//-------------------------------------------------------------------------//PRC_TS multiple candlesticks | indicator//01.03.2017//Nicolas @ www.prorealcode.com//Sharing ProRealTime knowledge//graph dayofweek//This is not my code.//This was written and published by Sir. Nicolas.// Prevents the system from placing new orders on specified days of the week//daysForbiddenEntry = OpenDayOfWeek = 1 OR OpenDayOfWeek = 2 OR OpenDayOfWeek = 3 OR OpenDayOfWeek = 5// --- parametersSize = 1 //position sizeStopLoss = 12 //stoploss in pointsTakeProfit = 9 //takeprofit in pointsXcandlesticks = 4 //consecutive bullish or bearish candlesticks to open a new positionInverseTrading = 0 //(0=false ; 1=true) trade in the same direction of the candlesticks pattern or notCumulateOrder = 1 //(0=false ; 1=true) cumulate or not a new trade if the current candlestick is in the same trend as the pattern// ------------//detecting patternsbearpattern = summation[Xcandlesticks](close<open)=Xcandlesticksbullishpattern = summation[Xcandlesticks](close>open)=Xcandlesticks//first orderif not onmarket then //AND not daysForbiddenEntry thenif bearpattern then //AND not daysForbiddenEntry thenif InverseTrading then //AND not daysForbiddenEntry thenBUY Size CONTRACTS AT MARKETelseSELLSHORT Size CONTRACT AT MARKETendiflastbar = barindexlastpattern = -1endifif bullishpattern then //AND not daysForbiddenEntry thenif InverseTrading then //AND not daysForbiddenEntry thenSELLSHORT Size CONTRACT AT MARKETelseBUY Size CONTRACTS AT MARKETendiflastbar = barindexlastpattern = 1endifendif//cumulate order when a new pattern occurredif onmarket and not CumulateOrder and barindex-lastbar>=Xcandlesticks then // AND not daysForbiddenEntry thenif bearpattern then //AND not daysForbiddenEntry thenif InverseTrading then // AND not daysForbiddenEntry thenBUY Size CONTRACTS AT MARKETelseSELLSHORT Size CONTRACT AT MARKETendiflastbar = barindexendifif bullishpattern then // AND not daysForbiddenEntry thenif InverseTrading then //AND not daysForbiddenEntry thenSELLSHORT Size CONTRACT AT MARKETelseBUY Size CONTRACTS AT MARKETendiflastbar = barindexendifendif//cumulate order when a new consecutive candletick happen right after the pattern occurredif onmarket and CumulateOrder and barindex-lastbar=1 then // AND not daysForbiddenEntry thenif longonmarket then // AND not daysForbiddenEntry thenif (close>open and lastpattern=1) or (close<open and lastpattern=-1) then //AND not daysForbiddenEntry thenBUY Size CONTRACTS AT MARKETlastbar = barindexendifendifif shortonmarket then //AND not daysForbiddenEntry thenif (close>open and lastpattern=1) or (close<open and lastpattern=-1) then // AND not daysForbiddenEntry thenSELLSHORT Size CONTRACT AT MARKETlastbar = barindexendifendifendifSET STOP PLOSS StopLossSET TARGET PPROFIT TakeProfit//END01/19/2018 at 3:20 PM #59900 -
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
Find exclusive trading pro-tools on
Similar topics: