@ontrade Then you need a loop searching for those values. I'm afraid loops are not my field of expertise. I recommend you to ask for roar's help. He's really good at them.
@ontrade you are asking an array element that isnt there.
For example, an array of size 3 can have these elements:
array[0] = 123
array[1] = 347
array[2] = 321
If you try to get array[3], the EA gives error because array[3] doesnt exist - the array is out of range.
@ontrade If this is the whole project, there should be no probem to execute a 'fast' backtest. It is a small number of blocks. The problem must be anywhere else.
The problem that I see with the money configuration is that if the account balance is changing, the same is always earned, and it is not the same to get $ 5 of $ 500 or $ 5000.
Does anyone know of a way for the goal to be a percentage of the balance?
@roar I am trying to simulate withdrawals, because some robots that I develop end up at the end of the backtest showing that they broke the account, but the backtest just ended and he had open orders and this makes the backtest not end with a positive balance.
Plot your 200 SMA on chart.
No plot the envelopes indicator exactly as 200 SMA. Then select different deviation values until you find those distances above and below the 200 SMA. Once found, use both upper and lower bands as your new levels for price to cross.
The way you have made it will only give you the possebility to change the color of your specific object an this option would be added automatic In your settings without the possibility to move this setting in the order or to assign it to other objects.
If you want to manage your settings by order or want to adress your setting to multiple Objekts you need to define your own constant but here is also a problem. You cann only define a datatype int to use color. If you define as exable ClrRed it will be interpreted als a Number 255. In your Settings you will only see this number und you can only change this number with an other number to define an other color.
Thank you for your effort @Ontrade . I appreciate your help.
I believe this simple strategy can make a decent EA.
It's up to you to give it a try and i can also test it.
From my observation this fibo01 gives more than 70% the right trade direction.
That's why i see it will be useful.