Forum

Need help filling dynamic array CandleBuffer[]

hey guys, i am not really talanted in coding but want to fill an array with information of of up/down candles. If its an up/down candle the array should be filled with 1/-1 but the else statement seems not to be filling the array correctly. Any Idea why? I don't know what i am doing wrong with the

NEED HELP: Simple example function on how to calculate the minimum index value over the last x bars of bollinger upper -lower band

Hey guys, i am new to coding and want to identify when the spread of bollinger bands (upper -lower band) reaches a minimum over the last x bars. Can anyone help me write a simple function that returns the corresponding index value? I declared... void OnTick(void) { double LowerBand,UpperBand;

Need Help with Order Send and Cose function

Hi All, I am new to coding (never done this before) but want to realize my own trading strategy. The system should send a buy order each bar (at open price ) for a number of periods that is equal to an moving average used. After this the EA should close the first (oldest) order in the next period