I think that your account run quickly out of margin because you accumulate orders. Try to simulate with more money in the balance. Or by disallow cumulation of orders by adding this line at the top of the code:
defparam cumulateorders=false
Attached is what I get with the code below.
What does the code below do on your Platform??
rem Cruce de medias semanales
rem Condiciones para entrada de posiciones largas
timeframe(weekly)
//MM30=MM30
MM30=average[30](close)
MM52=Average[52](close)
condc = (MM30 > MM52 and MM30[1] < MM52[1])
condv = (MM30 < MM52 and MM30[1] > MM52[1])
//condc=close>MM30
IF condc THEN
BUY 1 SHARES AT MARKET
ENDIF
//rem Condiciones de salida de posiciones largas
If condv THEN
SELL AT MARKET
ENDIF
//
If you want to see if your optimiser works … try attached and let us know how you get on.
I have set up the optimiser so it works and it works on my Platform just fine.
I just about to give up!
Don’t give up! Help is close at hand!
I have version 10.3 so we need to rethink?
Try doing below but try and optimise on weekly Timeframe.
Keep us updated.
What we need is somebody with v11 to try and optimise my .itf file.
//timeframe(weekly)
What does below mean in your computer spec??
Are you connected to the internet or are you dropping connection??
Connection refused: connect
you can certainly get v 10.3 from IG on the link below, but explore the PRT website first as I am sure you can get v10.3 direct from PRT?
I am assuming you got v11 direct from PRT website?
https://www.ig.com/uk/application-form
Connection refused: connect
I’m connected to internet with no issues!
Did you fill out the form below to PRT asking … can you go on v10.3?
https://www.prorealtime.com/en/contact
Try below …
BUY 1 contract AT MARKET //not 1 shares
Surely this Topic is being read by a Community Member with v11 … who could try my .itf file above and see if it runs and optimises okay on a v11 Platform??
Surely this Topic is being read by a Community Member with v11 … who could try my .itf file above and see if it runs and optimises okay on a v11 Platform??
I did it at the begining and did again now, it doesn’t work! 🙂