Forum

What modify to close the transaction to close out the candle?

friends, What should I modify this code so that the open operation on the signal , is closed at the close of the candle ? I do not want to use TP and SL ! I'm still learning to program ! I thank anyone who can help me! #property copyright "" #property link "" #define MAGIC 30015 //---- input

what should I modify to tie be counted as lost?

int SetOrder(int type) { double price = 0; color col = clrNONE; if (type == OP_BUY) { price = Ask; col = clrBlue; } if (type == OP_SELL) { price = Bid; col = clrRed; } double lot = Invest; if (Martingale) { int lossCount = GetLossCount(); if (lossCount > MaxMartingaleLevels) lossCount =