I’ve just set the code you posted above as in the .itf file running in Demo Live on DAX 1 Hour … see attached, is that the same DAX Instrument version that you have tried using Live data?
Thoughts re your code not working:
What maximum position size did you select when you set your Algo running on Live data?
Thinking about it, you probably are using DAX(DFB) as you are UK, so I have set your code running on DAX(DFB) on 1 Hour TF, see attached.
As an aside: Do you have a Demo Account?
Yes both running on DFBs £1pp on Dax and £0.45 on US100, these are both above IGs minimum trade amount. From what I can see it is not possible to set up autotrading on an IG demo account. Let me know if the system executes trades for you please.
The crux seems to hide in this picture (below). Note this is (again) why I called this thread “confusing”. So maybe GraHal can help a bit …
- This is not a Demo account because no “Demo” as such shows (in the top left of the charts). Or ?
- The two charts at the top show an order label. How ? this can only be from Real Live if it is not Demo ?? -> This seems impossible to me, so what gives ?
- As LivJoJade said, see the Equity chart at the top of each chart and the blue bars under it … that shows trades. But where are the trades on the charts ? the black arrows ? … nah, these are from an indicator.
- Wait … it can also be Paper Trading. Yup, that dimension exists too. But does it really exist on IG ? (in PRT-IB it exists)
- Is it even V12 we look at ? isn’t it V11 ? @LivJoJade, what is it ? how do you start it (please give some step by step screen shots). And if my questions are too daft, just say so.
- The order labels in the top two screenshots show indeed fractions of a contract (0.5 and 0.1 respectively). The remarks from GraHal were indeed about that : are fractions even allowed for the instruments you try this on (but now thus with the ??? what it is you even try where ?).
From what I can see it is not possible to set up autotrading on an IG demo account
But you can ? GraHal is doing it / using it all the time.
So does this gives a clue on your charts really showing Real Live after all ? If so, please stop doing that for now, as it is not the way to go. Not yet.
Oh, maybe I am known by now to not like analysing AI generated codes – and make remarks on it. This time I did not because it looked decently thought over (by you !). Anyway, my remark could have been : do not start out so complicated when you don’t control the basics yet (which clearly is in order here :-). So for us it is now unnecessary complicated to see what is going on, and to me it does not seem to be the code (although I vented my remarks over it).
On a last note for now, your black arrows are meant to show your entries. But for now I would not rely on these, hence don’t use them as an argument “see ? it does not work !”. That indicator has a life of its own and won’t show any reality other than your own thoughts which may mismatch with the strategy code. Add to that that the arrows can not come from the strategy code but only from the indicator code plus that the indicator code cannot work with “strategy” (ProOrder / Backtest) commands, and you’ll see the unnecessary complexity for at least this moment.
Anyway hold on. Something is amiss and we will find it.
strategy entries not being executed
https://www.prorealcode.com/topic/strategy-entries-not-being-executed/#post-260478
Watch out, I am trying to refer to post 260478 here, but that does not work out. Hence the picture of the post below, but please go to the post itself.
Later … ah, the quoted link does work.
I would really like someone to explain what we see here. This just can’t be. So LivJoJade, you perfectly showed there what is going on, but it can’t be something consistent. Still you show it and I have no doubts that you show odd things (like from different times).
Why do I have the feeling that you somehow manage to use two instances of the platform …
Or … that you use the IG platform to engage a trade which will indeed show on PRT ??? (and btw vise versa)
My early thoughts (before my coffee works through! 🙂 ) is that you are running a BIG risk not testing Algos on Demo Account … not using Demo is quickest way to blow up your Account!
Now Peter often waxes lyrical re Demo testing is useless, but that is okay for him as he has built up plenty of ££££££’s.
Enable Demo on PRT via the IG Platform as indicated by the red arrow on attached.
- This is not a Demo account because no “Demo” as such shows (in the top left of the charts). Or ?
No this is not a demo account, I’m not sure if at any time I implied it was a Demo account.
- As LivJoJade said, see the Equity chart at the top of each chart and the blue bars under it … that shows trades. But where are the trades on the charts ? the black arrows ? … nah, these are from an indicator.
The black arrows are indeed an indicator derived from the script to indicate the bar that provides the entry signal, unfortunately because the entry is on market the cyan bar does not appear until after that bar close, effectively a bar late. The arrow gives a visual representation of the entry signal and if not on market one can enter.
- Is it even V12 we look at ? isn’t it V11 ? @LivJoJade, what is it ? how do you start it (please give some step by step screen shots). And if my questions are too daft, just say so.
It is V12.
- The order labels in the top two screenshots show indeed fractions of a contract (0.5 and 0.1 respectively). The remarks from GraHal were indeed about that : are fractions even allowed for the instruments you try this on (but now thus with the ??? what it is you even try where ?).
There is no 0.5 and 0.1, if there are I’m not 100% sure what you are meaning.
From what I can see it is not possible to set up autotrading on an IG demo account
But you can ? GraHal is doing it / using it all the time.
I will look further into this but I see no way to access autotrading on a demo account.
So does this gives a clue on your charts really showing Real Live after all ? If so, please stop doing that for now, as it is not the way to go. Not yet.
OK I will stop posting live screenshots..
On a last note for now, your black arrows are meant to show your entries. But for now I would not rely on these, hence don’t use them as an argument “see ? it does not work !”. That indicator has a life of its own and won’t show any reality other than your own thoughts which may mismatch with the strategy code. Add to that that the arrows can not come from the strategy code but only from the indicator code plus that the indicator code cannot work with “strategy” (ProOrder / Backtest) commands, and you’ll see the unnecessary complexity for at least this moment.
Derived from the strategy code and agree the commands for indicators and strategy are somewhat conflicting.
Anyway hold on. Something is amiss and we will find it.
Many thanks
LivJoJade wrote: There is no 0.5 and 0.1, if there are I’m not 100% sure what you are meaning.
Peter is referring to as shown at red arrowhead on attached.
LivJoJade wrote: OK I will stop posting live screenshots..
I’m sure Peter meant … stop using Live Account for testing Algos as too dangerous!
replying to your 3 previous comments here GraHal.
1st comment, I will definetely take a look at that one later, thanks for the screenshot.
2nd comment, I see whay you mean now, the dax position I am hedged long on the June futures, an historical bad trade I’m afraid, The ftse position was opened on Friday evening with a trailing stop in place.
3rd comment, as per the first comment I will defo look into the demo account later this weekend..
LivJoJade wrote: an historical bad trade I’m afraid
We’ve all done it / had them!
Best thing to do is … on the next sizable drop (Trump / Tariffs / War etc) on the DAX (even though not down to anywhere near to breakeven) you should exit the trade.
Seeing it all the time is bad for your morale?
LivJoJade wrote: I see no way to access autotrading on a demo account.
Access / how to do autotrading is same on a Demo Account as on a Live Account.
This Thread is about not seeing trades on Live Account; is it possible that you are not passing your Algos to Live Account correctly?
Maybe you see a trade opened real time – but on the backtest screen – that you then expect to see that trade reflected in your IG Account?
I’m probably over-thinking what might be causing your problem?
So the obvious question is … have you ever had an Algo trade on Live Account and then also be visible on IG Platform?
Your Algo has been in the same Long trade on ‘backtest Live running forward’ since Friday so therefore no new trades opened on my Platform.
But just a few minutes ago, I started exact same code on 5 seconds TF, just to prove there is nothing weird in the code that would prevent trading on Live.
Your Algo opened a trade on 5 secs TF on Demo Live data, see attached.
You try it and see if you get a trade opened, least it will ‘cheer you up’? 😉
the dax trade closed out this afternoon when the price dropped below the trailing stop. The same strategy script running on the FTSE would have gone short on the close of the 13:00 bar.
I’m now going to attempt to set this up on the demo account.