// HelloWorld for MT4GUI // Lets include the imports file mt4gui.mqh #include <mt4gui2.mqh> // global Variable int hwnd = 0 ; int buy_check = 0 ; int sell_check = 0 ; int lot_size_label = 0 ; int lot_size = 0 ; int SL_label = 0 ; int TP_label =
Basically, I've been trying to set my TP in order to maximize my reward, which would be TP*P ( TP). After some math, taking into account the mean and Std deviation, I end up with a TP of 2.6 something pips
Ideally, I would like to end up with an array like [(O,H,L,C) 0 , (O,H,L,C) 1 , (O,H,L,C) 2 ... (O,H,L,C)n] where every tuple represents a candle and n=periods, n defined by me