As promised this is the ProOrder robot for Delphic-TP Combo1.0 indicator. Please before download it, read and download the itf files of the Delphic-TP Combo1.0 indicator.
You can find it in the indicator section.
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 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 |
//************************************************************************************* //* * //* Trading System: DelphicTrade3.0 Author: Alessandro Furlani * //* Filename : DelphicTrade1.0 * //* * //* Note: The TS works with the indicator Delphic-TP Combbo1.0 * //* To understand strategy go to the Delphic1.0 indicator label * //* Standard setup for 1D timeframe is SMAFast=18, SMASlow=40. * //* For different TM the lenght of the SMA has to be tuned. * //* Orders are opened based on the indicator. * //* TP and SL are available in % but the standard version work with Trailing * //* Stop. All the thresholds have to be tuned based on TM and your preferences* //* Trailing Stop can be automated immediately under or above the SMA40 * //* accordingly with the postion open (Long/Short)or tuned manually at % * //* A grid management is available if needed. * //* 10-05-2025 - Time run added * //* 11-05-2023 - Witdrawal simulation added * //* * //* * //************************************************************************************* DEFPARAM cumulateOrders = True once ActualEquity=EquityStart once EquityStartMulti=2 once TotalWithDraw=0 //Equity calculation to make the size automatic and dynamic if OnMarket then ActualEquity=(EquityStart+StrategyProfit)-TotalWithDraw if CurrentDayOfWeek=5 and ActualEquity>(EquityStart*EquityStartMulti) then WithDrawEquity=(ActualEquity-(EquityStart*EquityStartMulti))*WithDrawSize TotalWithDraw=TotalWithDraw+WithDrawEquity EquityStartMulti=EquityStartMulti+1 //graph WithDrawEquity as "WithDraw Gain" coloured ("green") endif endif //To use only in Backtest. disable on live //graph WithDrawEquity as "WithDraw Gain" coloured ("green") //graph ActualEquity as "StrategyProfitYTD" coloured ("red") //graph TotalWithDraw as "Total WithDraw YTD" coloured ("Yellow") //Get the indicator signals PriceSMASlow=average[PeriodSMASlow](TotalPrice) PriceSMAFast=average[PeriodSMAFast](TotalPrice) signal, dumb = call "Delphic-TP Combo1.0"[PeriodSMAFast, PeriodSMASlow,0] //Force Exit Strategy to increase efficency if ExitStrategy=1 then if LongOnMarket and PriceSMAFast crosses under PriceSMASlow then Sell at market elsif ShortOnMarket and PriceSMAFast crosses over PriceSMASlow then ExitShort at market endif endif //Lotto Setup if CurrentTime>=TimeStart and CurrentTime<=TimeStop then if Autosize>0 then lotto=Round((((ActualEquity*Leva)*AutoSize)/TotalPrice),0) MaxLot=Round((ActualEquity*Leva)/TotalPrice) if MaxLot>MaxMaxLot then MaxLot=MaxMaxLot endif if Lotto>MaxLot then Lotto=MaxLot endif if lotto<MinLot then lotto=MinLot endif else lotto=MinLot MaxLot=MaxMaxLot endif // Condition to enter long IF NOT LongOnMarket AND signal=1 THEN BUY lotto Lot AT MARKET if Trail=0 then trailpoint=TotalPrice-PriceSMASlow elsif Trail>0 then trailpoint=Trail endif //set stop $trailing trailpoint set stop %loss SL set target %profit TP LastOrderBar=BarIndex OrderBar=BarIndex LottoGrid=lotto OrderGridNum=0 ENDIF // Condition to enter short IF NOT ShortOnMarket AND signal=-1 THEN SELLSHORT lotto lot AT MARKET if Trail=0 then trailpoint=PriceSMASlow-TotalPrice elsif Trail>0 then trailpoint=Trail endif //set stop $trailing trailpoint set stop %loss SL set target %profit TP LastOrderBar=BarIndex OrderBar=BarIndex LottoGrid=lotto OrderGridNum=0 ENDIF endif //Grid management if Grid=1 then if LongOnMarket and CountOfLongShares<MaxLot and BarIndex>=OrderBar+1 then if (BarIndex>LastOrderBar and PositionPerf[0]<GridStep and OrderGridNum<MaxGridOrder ) then LottoGrid=LottoGrid*GridMulti if LottoGrid>MaxLot-CountOfLongShares then LottoGrid=MaxLot-CountOfLongShares endif BUY LottoGrid LOT AT MARKET OrderGridNum=OrderGridNum+1 LastOrderBar=BarIndex endif elsif ShortOnMarket and CountOfShortShares<MaxLot and BarIndex>=OrderBar+1 then if (BarIndex>LastOrderBar and PositionPerf[0]<GridStep and OrderGridNum<MaxGridOrder ) then LottoGrid=LottoGrid*GridMulti if LottoGrid>MaxLot-CountOfShortShares then LottoGrid=MaxLot-CountOfShortShares endif SELLSHORT LottoGrid LOT at market OrderGridNum=OrderGridNum+1 LastOrderBar=BarIndex endif endif endif |
The tested parameters are for Gold. You can find it attached in a jpg image.
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 :PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials