Forum

Duplicate lots when order hit stop loss

Hi i have a problem i write this and nothing change, the lots dont duplicate,why? help me please. #define PivotPoint "PivotPoint" #define PivotPoint_P 0 extern int tp= 25 ; extern int sl= 100 ; extern double lotti= 0.10 ; extern bool TENKANSEN; input int InpTenkan= 9 ; // Tenkan-sen input int

Activate pending order when the bar close under him.

Hi I have a question .. How can I do this? I want place pending order but when the bar touch it the order must not active but only when the bar close under him. This is my code: void OnStart () { int ticket,expiration; double point; double price; double stop; //---- point= MarketInfo

Open position when the price reach a specific distance.

Hi,I have a questions... What function I must use for open an orden when the price reach a specific distance? Thanks

Close and open a new order

Hi, I want to do a bot that will do these steps : When i open an order ( for example in long position) and the price reaches a X number of pips close in " take profit ". But if the price go down of X number of pips open a new order in sell. How can do it? Thanks and sorry for my bad english. P.S