Forum

Back Test did not work for year 2005, but ok since 2006

When I back tested from year 2006, the EA works fine. But when I switched the year earlier to 2005, the back test did not work. Is there anything I miss in the code for the old years

Not execute the first trade signal

Hello, If a trader just run the EA and it detects a trade signal but it is near the end signal where it is less favorable. How to program the EA so that it will not execute the first signal after launching

stoploss help

Hello, Is there a function to check if the stoploss has been triggered. I want to run a script when the order stoploss is executed. Thanks

need help to divide a double

Hello, I have a double value of 0.00045 and need to divide it by 2000 to get the average value. But the result I get is 0. Is there a function to do this

newbie needs help in Accelerator indicator -> Array

Hello, I am trying to use the existing Accelerator indicator and put it in array but my array doesn't seem to give me the correct figure. Can someone point out the mistake? The Original Accelerator indicator below. //+------------------------------------------------------------------+ //|

Array Help

Hello, I have got an array of [1,2,3,4,5, ...] How do I change it to [...,5,4,3,2,1] ? Any help is appreciated. Thanks

dynamic size array help

int counted_bars=IndicatorCounted(); if(counted_bars>0) counted_bars--; limit =Bars-counted_bars; double arrayOne[ limit ]; I need to create an array of dynamic size above, but it doesn't work in this code. What is the correct way of coding it? Thanks