beginner make simple errors
Forums › ProRealTime English forum › General trading discussions › beginner make simple errors
- This topic has 11 replies, 2 voices, and was last updated 1 year ago by apollopa.
-
-
05/08/2023 at 4:02 PM #21430705/08/2023 at 4:20 PM #214308
And to add – Basics are good – manual trading works fine. Strategies running live in Backtest open and close as expected. Autotrading accepts the code OK and strategies are shown as running., but when running at the same time as backtest no positions open. Turning off the backtest makes no difference, positions do not open in autotrade. Code is only 100 or so lines and no big loops – running one minute candles with 200 on chart.
All other details happy to supply – I’m clearly missing something.
05/08/2023 at 5:42 PM #214312What Instrument and what position size are you using?
You may have < min pos size in your code, lots of us have made that error from time to time.
OR maybe you set the max setting (when you started your Algo) at less than the pos size that you are using?
05/08/2023 at 6:01 PM #21431305/08/2023 at 6:34 PM #214316£0.2 per point is okay, this is the minimum.
You must have set a a max else ProOrder would not let you start an Algo, we can’t leave the setting blank / null.
Try starting another and you will see the max setting.
Set max at at least 1 if using 0.2 per point.
05/08/2023 at 7:05 PM #214318ah – apologies – yes I have set a “max position”. It is at £0.20 – this is the field on the form that opens when I active the the strategy for autotrading. There are other data on the form that perhaps are affecting the service: image attached (hope its big enough to read – not sure how to check) – not sure it uploads – (this is an edit of the message – I have selected the file and it is 112 Kbyte – so good for size) cant see an upload button though – maybe it does maybe it don’t – sorry
05/08/2023 at 7:14 PM #21432005/08/2023 at 7:16 PM #21432105/08/2023 at 7:43 PM #214322I am spread betting the DOW (DJI) at £0.20 per point.
You said above before and now you are saying …
BUY 1 PERPOINT AT MARKET in the code
But anyway Yes the Max setting ALWAYS has to be >= the max pos size we use in our code.
05/08/2023 at 10:11 PM #214324Many thanks – and we got there quickly too..
schoolboy error as I thought – I had thought the code bought units and the autotrade form set the price – not so!
The code sets the price of the position while the autotrade form has recorded a price the code cannot exceed – a wise safety feature.
thanks again folks
05/09/2023 at 8:26 AM #21434205/09/2023 at 10:00 AM #214348Yes thanks – I have been using the demo account but at £1.00p max trade – so no fault occurred! I looked back at the Programming Guide (ProBacktest and ProOrder) but like before it does seem to say the number in the buy command is the quantity, but I guess this is for shares and contracts. Spread betting, being different, maybe hasn’t been written up in detail. (e.g. “perpoint” gives me a not found). Is there a better source of programming guide for spread betting do you know?
-
AuthorPosts
Find exclusive trading pro-tools on