Forum

Loop in array, check if array is increasing

Hey guys, What I'm trying to ask is how can I make a loop work for : for (int i=0; i<arraysize; i++) If (price[i] >price[i+1] & & price[i+1]>price[i+2].... I've been trying over and over but just can't figure out how to code it. Thanks

magic number into signals

Hello, I'm having a stupid hard time setting one position by signal. Signals are both buy and sell. They're based on 2 strategies : flat & trending (which I got inspired by one of the incredible articles on the site). What I did is setting magic numbers to track which signal created the trade : int