Forum

TakeProfit & Stop Trading

How would you code a routine that would say the following; If TakeProfit reaches 50 pips Close the order Stop trading

Coding a 30 wait

How would you code a the following logic? TakeProfit at 50 pips. If TakeProfit has been reached, TakeProfit & wait 30 minutes

Adding Custom Indicator to Expert

Does anyone know how to add Custom indicators to an Expert Advisor & have it come up in the chart? Example of code for stochastic below. Stoch=iStochastic(NULL,0,14,5,3,MODE_SMA,0,MODE_MAIN,0); Stochsig=iStochastic(NULL,0,14,5,3,MODE_SMA,0,MODE_SIGNAL,0); The above code shows the for accessing the

Calling a custom indicator to MT4 Expert

I have been using the indicators that come with Metatrader 4. I have been able to call them simply by for example using the following statement for Stochastic. Stoch=iStochastic(NULL,0,30,5,12,MODE_SMA,0,MODE_MAIN,0); However, I acquired an indicator(ADXdon) that does not come with MT4 and want to