Algos – No nightfees – All vendors
Forums › ProRealTime English forum › General trading discussions › Algos – No nightfees – All vendors
- This topic has 9 replies, 6 voices, and was last updated 3 weeks ago by
ProfitAlgos.
-
-
02/10/2025 at 10:29 AM #243672
There have been several discussions about the overnight fees charged by IG.
This thread is intended for monthly publishing of results from algorithms that close every evening and are therefore not affected by these fees. The idea is for all algorithm providers to share their results here.
We have one algorithm that closes every evening. The results for this will be published in the next post.
02/10/2025 at 10:47 AM #243674🚀 PA – DAX 10M Flat – Smart Trading, Zero Overnight Fees! 🚀
Maximize your trading efficiency with PA – DAX 10M Flat, designed to capture opportunities on the DAX40 while avoiding overnight fees.
🔹 Key Features:
✅ Timeframe: 10 Min
✅ Strategic Stop-Loss & Take-Profit for precision execution
✅ Flat Before & After Market Close – No overnight exposure
✅ Proven Performance: +2,817 EUR Gain🔥 Part of ProfitPack – Try it for FREE!
🔗 Get your free trial here02/12/2025 at 8:30 PM #243754It’s an interesting approach to avoid overnight fees, especially when we have uncertainty about how the system is going to perform. How has this system performed over the longer term? Do you have any data for the past 5 or 10 years?
02/13/2025 at 12:17 PM #243774It’s an interesting approach to avoid overnight fees, especially when we have uncertainty about how the system is going to perform. How has this system performed over the longer term? Do you have any data for the past 5 or 10 years?
Hi.
We attached Backtest of PA- DAX 10M
1 user thanked author for this post.
02/17/2025 at 9:28 AM #243933Just a question about overnight fees… If i close a position at 10 (or 11) pm for avoiding overnight fees, and i want to take it back, at what time can i take it back without having to pay those overnight fees? Can i take it back 5 or 10 minutes after the deadline ; 22h05 (or 23h05?). Or do i have to wait for midnight 00h01? or 01h01?
Thanks for the replies
02/17/2025 at 10:03 AM #243937You would need to close before 10pm (or 11pm) i.e. 10:59 as the ‘axe falls’ on positions held open at 10:00 exactly and then the overnight fees are triggered.
My understanding is that you could then re-open the position at 10:01 without incurring overnight fees.
However, you will pay as much in spread as you would have been charged in overnight fees. Spread increases at exactly 10:00pm (or 11:00 pm depending on timezone)
I’m happy to be corrected re my statement above if you work it out?
02/17/2025 at 10:10 AM #243938I just scratched my post with the same answer, because, … with DAX (Eurex) and such I wouldn’t know (plus DAX is not even open at 10:01 – your time, Lucas).
I also added to be careful for days like today, when all closes at 19:00.02/17/2025 at 10:38 AM #24394002/21/2025 at 2:44 PM #244155A practical approach to avoiding night fees in algorithmic trading is to close positions just before the broker’s rollover time and reopen them shortly after. For example, with IG, one could close positions at 22:57 CET and reopen them at 23:03 CET, effectively sidestepping overnight financing costs.
The Challenge: Maintaining the Same Trailing Stop-Loss Distance
When reopening the position, an important question arises: how can we ensure the new position has the same trailing stop-loss distance as the closed one?
Possible Solutions:
-
Store the Trailing Stop Distance at Closure:
- Before closing the position at 22:57 CET, the algorithm should store the exact trailing stop distance from the current market price.
- This distance should be logged as a variable and then applied when reopening the trade at 23:03 CET.
- How do we do this?
- How to do that on this example algo?
https://www.prorealcode.com/prorealtime-trading-strategies/vectorial-dax-m5/
VECTORIAL DAX (M5)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122// ROBOT VECTORIAL DAX// M5// SPREAD 1.5// by BALMORA 74 - FEBRUARY 2019DEFPARAM CumulateOrders = falseDEFPARAM Preloadbars = 50000//VARIABLESCtimeA = time >= 080000 and time <= 220000CtimeB = time >= 080000 and time <= 220000ONCE BarLong = 950 //EXIT ZOMBIE TRADE LONGONCE BarShort = 650 //EXIT ZOMBIE TRADE SHORT// TAILLE DES POSITIONSONCE PositionSizeLong = 1ONCE PositionSizeShort = 2//STRATEGIE//VECTEUR = CALCUL DE L'ANGLEONCE PeriodeA = 10ONCE nbChandelierA= 15MMA = Exponentialaverage[PeriodeA](close)ADJASUROPPO = (MMA-MMA[nbchandelierA]*pipsize) / nbChandelierAANGLE = (ATAN(ADJASUROPPO)) //FONCTION ARC TANGENTECondBuy1 = ANGLE >= 45CondSell1 = ANGLE <= - 37//VECTEUR = CALCUL DE LA PENTE ET SA MOYENNE MOBILEONCE PeriodeB = 20ONCE nbChandelierB= 35lag = 5MMB = Exponentialaverage[PeriodeB](close)pente = (MMB-MMB[nbchandelierB]*pipsize) / nbchandelierBtrigger = Exponentialaverage[PeriodeB+lag](pente)CondBuy2 = (pente > trigger) AND (pente < 0)CondSell2 = (pente CROSSES UNDER trigger) AND (pente > -1)//ENTREES EN POSITIONCONDBUY = CondBuy1 and CondBuy2 and CTimeACONDSELL = CondSell1 and CondSell2 and CtimeB//POSITION LONGUEIF CONDBUY THENbuy PositionSizeLong contract at marketSET TARGET %PROFIT 4.25ENDIF//POSITION COURTEIF CONDSELL THENSellshort PositionSizeShort contract at marketSET TARGET %PROFIT 1.25ENDIF//VARIABLES STOP SUIVEURONCE trailingStopType = 1 // Trailing Stop - 0 OFF, 1 ONONCE trailingstoplong = 7.5 // Trailing Stop Atr Relative DistanceONCE trailingstopshort = 4 // Trailing Stop Atr Relative DistanceONCE atrtrailingperiod = 25 // Atr parameter ValueONCE minstop = 0 // Minimum Trailing Stop Distance// TRAILINGSTOP//----------------------------------------------atrtrail = AverageTrueRange[atrtrailingperiod]((close/10)*pipsize)/1000trailingstartl = round(atrtrail*trailingstoplong)trailingstartS = round(atrtrail*trailingstopshort)if trailingStopType = 1 THENTGL =trailingstartlTGS=trailingstartsif not onmarket thenMAXPRICE = 0MINPRICE = closePREZZOUSCITA = 0ENDIFif longonmarket thenMAXPRICE = MAX(MAXPRICE,close)if MAXPRICE-tradeprice(1)>=TGL*pointsize thenif MAXPRICE-tradeprice(1)>=MINSTOP thenPREZZOUSCITA = MAXPRICE-TGL*pointsizeELSEPREZZOUSCITA = MAXPRICE - MINSTOP*pointsizeENDIFENDIFENDIFif shortonmarket thenMINPRICE = MIN(MINPRICE,close)if tradeprice(1)-MINPRICE>=TGS*pointsize thenif tradeprice(1)-MINPRICE>=MINSTOP thenPREZZOUSCITA = MINPRICE+TGS*pointsizeELSEPREZZOUSCITA = MINPRICE + MINSTOP*pointsizeENDIFENDIFENDIFif onmarket and PREZZOUSCITA>0 thenEXITSHORT AT PREZZOUSCITA STOPSELL AT PREZZOUSCITA STOPENDIFENDIF//EXIT ZOMBIE TRADEIF POSITIONPERF<0 THENIF shortOnMarket AND BARINDEX-TRADEINDEX(1)>= barshort THENEXITSHORT AT MARKETENDIFENDIFIF POSITIONPERF<0 THENIF LongOnMarket AND BARINDEX-TRADEINDEX(1)>= barlong THENSELL AT MARKETENDIFENDIF
02/28/2025 at 6:27 AM #244447We’ve just completed an algorithm that incurs no night fees with IG.
We’re currently testing it ourselves, and it’s available for free download on our website.
-
-
AuthorPosts