Hi Guys!
I would like to add a couple of things to my EA but I am new to MQL4 coding.
Please assist with the code for the following:
Open trade in the following way:
1.Open trade by entry gap:
Buy Entry based on Price change gap to the upside and Sell Entry based on price change gap to the downside. This must be tick based. For example: price changes from 1.15655 to 1.15665 buy entry will be entered as there is a pip gap. The gap must be a variable that can be changed.
Close Trades in the following ways:
1. Position Maximal Time: maximum duration of trade in seconds. Also a variable that can be changed
2. Repeat Closing Profit: check every 30 seconds and if in profit close the trade. "variable and can be changed"
3. Repeat Closing Loss: check every 180 seconds and if in loss close the trade. "variable and can be changed"
4. Close trade by exit gap:
If buy trade is active close trade if price change gap occurs to the downside and if sell trade is active close trade if price change gap to the upside. This must be tick based."variable and can be changed"
Each must be able to work independently and also be able to in conjunction with each other.
Please guys! Your assistance will be highly appreciated.
I would like to add a couple of things to my EA but I am new to MQL4 coding.
Please assist with the code for the following:
Open trade in the following way:
1.Open trade by entry gap:
Buy Entry based on Price change gap to the upside and Sell Entry based on price change gap to the downside. This must be tick based. For example: price changes from 1.15655 to 1.15665 buy entry will be entered as there is a pip gap. The gap must be a variable that can be changed.
Close Trades in the following ways:
1. Position Maximal Time: maximum duration of trade in seconds. Also a variable that can be changed
2. Repeat Closing Profit: check every 30 seconds and if in profit close the trade. "variable and can be changed"
3. Repeat Closing Loss: check every 180 seconds and if in loss close the trade. "variable and can be changed"
4. Close trade by exit gap:
If buy trade is active close trade if price change gap occurs to the downside and if sell trade is active close trade if price change gap to the upside. This must be tick based."variable and can be changed"
Each must be able to work independently and also be able to in conjunction with each other.
Please guys! Your assistance will be highly appreciated.