You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
This my first expert to code . The expert is open trade based on signal . The signal work correctly . But I want to add section called Monitoring Section for this expert .
The function of this code is opening Pending Stop orders in opposite direction for the last open trade . IF the pend order become market order then the expert will do the same as before . Means will create Pending Stop order in opposite direction .
The Distance of the Pending order will be same distance of Take Profit but in opposite direction . The lot =2XLot(0) ( user input ) . Take Profit will be the same for all . Note That the lot size is same for all pending order which is Double of the first order created by the signal .
The Monitoring will stop at 2 condition Only . IF ( Hour()>22 ( user input ) OR any of the running trade Hit Take Profit ) Then close all running orders and delete all Pending orders and wait until new day come means Hour>=00:00
This is the section As I try to code . Thank you in advanced