Problems with the speed of my bot
-
Hello all,
I have made an equity protector but it is to slow.
When i put a max amount of money as maximum los it goes a bit further before it closes. This results in a bigger total loss.[IMG]https://www.mupload.nl/img/kp9fwo2.png[/IMG]
I just made an variable change by each tick? Is that the reason why it is slow?
Thanks a lot.
Rubin
-
Many possible reasons:
- you use "once per bar"
- you backtest using too rough history data (open prices only)
- slippage
- commission charges when closing the position
It would help if you shared your project link
-
Hello roar,
I forgot to paste the link with it.
https://fxdreema.com/shared/mLCDeuw7d
Thanks in advance.
-
@tradewith_rubin turning blocks on and off is a bit difficult to control. I think your delay happens because of these toggles + additional ticks in your "Every n ticks" block.
Try this approach:
https://fxdreema.com/shared/sOJ5SY9G -
@roar Thankyou.
I made a few changes in the code, but now it doesn't work at all.
http://fxdreema.com/shared/gMWU9xItb
Would you make some changes?
Thanks a lot.
Rubin
-
@tradewith_rubin the variable is in the wrong field here:

-
@roar Other functions also don't work? What am i doing wrong?
-
@tradewith_rubin I dont see any error in the other blocks