Forums › ProRealTime English forum › ProOrder support › Translation of EasyLanguage code › Reply To: Translation of EasyLanguage code
08/21/2018 at 9:39 AM
#78687
As ever I am sceptical of the 5 minute time frame
Well you’re going to hate this one then! 🙂 🙂
I’ve got 4 versions on Demo Fwd Test now!
Multi TF on this version and max Lot size of 2.
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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
//------------------------------------------------------------------------- // Main code : Mags/Nic BO DJI 5M v1.1 //------------------------------------------------------------------------- //https://www.prorealcode.com/topic/translation-of-easylanguage-code/ defparam cumulateorders=false //Main Timeframe: 15-minute (EXCHANGE TIME)
Second Timeframe: DAILY
 //{Strategy inputs} //inputs: Timeframe (5 mn, updateonclose) myFraction=4.7 N1higher=10 N2higher=16 N1main=4 EntryCond1long=1 //(0=false ; 1=true) EntryCond2long=1 //(0=false ; 1=true) //{StopLoss} //Input: if onmarket then alreadytraded=1 endif if intradaybarindex=0 then alreadytraded=0 endif //Point Of Initiation TodaysOpen = DOpen(0) //For the calculation of the space ATR = AverageTrueRange[40] //The BreakoutLevel (POI + space) myBreakoutLong = TodaysOpen + ( myFraction * ATR ) //higher timeframe filter condition (DAILY) EntryCond1long = 0.1 * (Dclose(0) - DHigh(N1higher)) < N2higher //main timeframe filter condition (15 minute) EntryCond2long = dClose(1) - Lowest[N1main](high) < ATR //Position size condition if dclose(1) < dopen(1) then value1 = 2 Else Value1 = 2 endif //Entry Condition
 if not onmarket and EntryCond1long and EntryCond2long and not alreadytraded then buy value1 contracts at myBreakoutLong stop endif //Exit Condition
 Timeframe (1 mn) If Stochastic[14,3](close) crosses under 90 Then Sell at Market endif SET TARGET PPROFIT 90 set stop ploss 90 |