Forum

Anyone with a code to make indicators inside expert advisor after compile?

I have a robot combined with different indicators however I want to publish it on sale but I cannot give my clients my indicators because if EA expires they will use indicators and trade manually. Anyone with a source code of inclusive indicator in a robot then we send client expert advisor ex5

ontradetransaction function declarations are allowed on global,namespace or class scope only Help to solve this error I want it to function at indicator 2 not the whole chart thanks in advance

//+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ void Indicator_2() { Indicator_2_Buy= 0 ; Indicator_2_Sell= 0 ;

I managed to make close and open opposite direction now my concern I want it to open 1 trade per each close not to open 10 or 20 according to maximum entries kindly help thanks

#include <Trade\Trade.mqh> CTrade m_trade; // trading object //--- ulong m_slippage= 30 ; // slippage //+------------------------------------------------------------------+ //| Expert initialization function |