spread indicator for strategy
Forums › ProRealTime English forum › ProBuilder support › spread indicator for strategy
- This topic has 18 replies, 2 voices, and was last updated 10 months ago by daskonzept.
Tagged: spread
-
-
06/15/2020 at 3:41 PM #136007
Thanks GraHal.
Very disappointing to see the Bid/Ask Line Indicator on the chart and then not being able to grab it and use the values to implement live dynamic spread calculation in automated strategies.
PRT clearly has the values, but I can’t find a way to reach them programmatically.
Very annoying.
If anyone can do this on PRT, I’d like to hear from them. Will have a look on the French side as well.
06/15/2020 at 4:52 PM #136017I think PRT could help you.
03/13/2022 at 2:04 PM #189908That really is too bad! I too would love to be able to “call” spread for calculations…
I guess one option would be to trade “raw spreads”? Just a thought, but seems too simple to be viable. I’ve never had a raw-spread account, but if your broker offered one, would that not be more consistent for the calculations? Spread being negated?
12/28/2023 at 10:32 PM #225788Did my workaround on these to get spread pricings in indicator.
Spread prizes123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127// https://www.ig.com/en/help-and-support/cfds/fees-and-charges/what-are-igs-indices-cfd-product-details// CET times (Paris, Berlin, Amsterdam)timeDAX1 = time >= 000000 and time < 011500 //Germany 40: 22.00-01.15 (CET) spread = 5timeDAX2 = time >= 011500 and time < 080000 //Germany 40: 01.15-08.00 (CET) spread = 4timeDAX3 = time >= 080000 and time < 090000 //Germany 40: 08.00-09.00 (CET) spread = 2timeDAX4 = time >= 090000 and time < 173000 //Germany 40: 09.00-17.30 (CET) spread = 1.2timeDAX5 = time >= 173000 and time < 220000 //Germany 40: 17.30-22.00 (CET) spread = 2timeDAX6 = time >= 220000 and time < 000000 //Germany 40: 22.00-01.15 (CET) spread = 5timeSTXE1 = time >= 000000 and time < 011500 //EU Stocks 50: 22.00-01.15 (CET) spread = 3timeSTXE2 = time >= 011500 and time < 080000 //EU Stocks 50: 01.15-08.00 (CET) spread = 1,5timeSTXE3 = time >= 080000 and time < 220000 //EU Stocks 50: 08.00-22.00 (CET) spread = 1,5timeSTXE4 = time >= 220000 and time < 000000 //EU Stocks 50: 22.00-01.15 (CET) spread = 3timePXI1 = time >= 000000 and time < 011500 //France 40: 22.00-01.15 (CET) spread = 4timePXI2 = time >= 011500 and time < 080000 //France 40: 01.15-08.00 (CET) spread = 3timePXI3 = time >= 080000 and time < 090000 //France 40: 08.00-09.00 (CET) spread = 2timePXI4 = time >= 090000 and time < 173000 //France 40: 09.00-17.30 (CET) spread = 1timePXI5 = time >= 173000 and time < 220000 //France 40: 17.30-22.00 (CET) spread = 2timePXI6 = time >= 220000 and time < 000000 //France 40: 22.00-01.15 (CET) spread = 4timeUKX1 = time >= 000000 and time < 060000 //FTSE 100: 01.00-07.00 (GMT) spread = 3timeUKX2 = time >= 060000 and time < 070000 //FTSE 100: 07.00-08.00 (GMT) spread = 2timeUKX3 = time >= 070000 and time < 153000 //FTSE 100: 08.00-16.30 (GMT) spread = 1timeUKX4 = time >= 153000 and time < 200000 //FTSE 100: 16.30-21.00 (GMT) spread = 2timeUKX5 = time >= 200000 and time < 000000 //FTSE 100: 21.00-01.00 (GMT) spread = 4timeNASDAQ1 = time >= 000000 and time < 153000 //US Tech 100: All other times (EST) spread = 2timeNASDAQ2 = time >= 153000 and time < 220000 //US Tech 100: 09.30-16.00 (EST) spread = 1timeNASDAQ3 = time >= 220000 and time < 230000 //US Tech 100: All other times (EST) spread = 2timeNASDAQ4 = time >= 230000 and time < 000000 //US Tech 100: 17.00-18.00 (EST) spread = 3timeSPTRD1 = time >= 000000 and time < 153000 //US 500: All other times (EST) spread = 0.6timeSPTRD2 = time >= 153000 and time < 220000 //US 500: 09.30-16.00 (EST) spread = 0.4timeSPTRD3 = time >= 220000 and time < 230000 //US 500: All other times (EST) spread = 0.6timeSPTRD4 = time >= 230000 and time < 000000 //US 500: 17.00-18.00 (EST) spread = 0.9timeDOW1 = time >= 000000 and time < 090000 //Wall Street: All other times (EST) spread = 4.8timeDOW2 = time >= 090000 and time < 153000 //Wall Street: 03.00-09.30 (EST) spread = 3.6timeDOW3 = time >= 153000 and time < 220000 //Wall Street: 09.30-16.00 (EST) spread = 2.4timeDOW4 = time >= 220000 and time < 230000 //Wall Street: All other times (EST) spread = 4.8timeDOW5 = time >= 230000 and time < 000000 //Wall Street: 17.00-18.00 (EST) spread = 9.8if timeDAX1 thenspreadDAX = 5elsif timeDAX2 thenspreadDAX = 4elsif timeDAX3 thenspreadDAX = 2elsif timeDAX4 thenspreadDAX = 1.2elsif timeDAX5 thenspreadDAX = 2elsif timeDAX6 thenspreadDAX = 5endifif timeSTXE1 thenspreadSTXE = 23elsif timeSTXE2 thenspreadSTXE = 1.5elsif timeSTXE3 thenspreadSTXE = 1.5elsif timeSTXE4 thenspreadSTXE = 3endifif timePXI1 thenspreadPXI = 4elsif timePXI2 thenspreadPXI = 3elsif timePXI3 thenspreadPXI = 2elsif timePXI4 thenspreadPXI = 1elsif timePXI5 thenspreadPXI = 2elsif timePXI6 thenspreadPXI = 4endifif timeUKX1 thenspreadUKX = 3elsif timeUKX2 thenspreadUKX = 2elsif timeUKX3 thenspreadUKX = 1elsif timeUKX4 thenspreadUKX = 2elsif timeUKX5 thenspreadUKX = 4endifif timeNASDAQ1 thenspreadNASDAQ = 2elsif timeNASDAQ2 thenspreadNASDAQ = 1elsif timeNASDAQ3 thenspreadNASDAQ = 2elsif timeNASDAQ4 thenspreadNASDAQ = 3endifif timeSPTRD1 thenspreadSPTRD = 0.6elsif timeSPTRD2 thenspreadSPTRD = 0.4elsif timeSPTRD3 thenspreadSPTRD = 0.6elsif timeSPTRD4 thenspreadSPTRD = 0.9endifif timeDOW1 thenspreadDOW = 4.8elsif timeDOW2 thenspreadDOW = 3.6elsif timeDOW3 thenspreadDOW = 2.4elsif timeDOW4 thenspreadDOW = 4.8elsif timeDOW5 thenspreadDOW = 9.8ENDIFreturn spreadDAX as "DAX", spreadSTXE as "STXE", spreadPXI as "PXI", spreadUKX as "UKX", spreadNASDAQ as "NASDAQ", spreadSPTRD as "SPTRD-SP500", spreadDOW as "DOW" -
AuthorPosts
Find exclusive trading pro-tools on