Hello, I have a little big problem. I want just one trade per bar!. I found this (
viewtopic.php?p=10210#p10210 )but it is a little complicated for me.
Is there a easily solution for this problem maybe using mql+ icon?
I found this too:
bool isLastOrderCandle(){
//TRUE è già stato aperto un ordine su questa candela
//FALSE non sono stati aperti ordini su questa candela
int v_LastOrderHistory = OrdersHistoryTotal() - 1;
if (OrderSelect(v_LastOrderHistory, SELECT_BY_POS, MODE_HISTORY) && (OrderMagicNumber() == e_MagicID))
if (iBarShift(NULL, 0, OrderOpenTime(), true) == 0)
return(True);
return(False);
}
Is it possible to use it with mql+ icon. ( maybe I must start to study mql codes....I know)
Thank you very much