Sokphal: I have been trying to set my stoploss to 3 different condition as follow ...
|
Sokphal: I have been trying to set my stoploss to 3 different condition as follow ... |
I just want to know what function, operator, or any related needed codes for this kind of stop loss condition.
you just give me some advice on those thing. I don't need you to write it for me.
I just want to know what function, operator, or any related needed codes for this kind of stop loss condition.
you just give me some advice on those thing. I don't need you to write it for me.
You will need most of the functions from this section of the documentation: "Trade Functions"
Read that. Most of the functions come with sample code.
Also, read the book: "Mql4 Book"
I just want to know what function, operator, or any related needed codes for this kind of stop loss condition.
you just give me some advice on those thing. I don't need you to write it for me.
We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
Sokphal: 1. My Stoploss = 50 pips if the previous close is not greater than 50 pips compare to previous bar open . 2. My Stoploss = previous bar open if the different between previous close and open is greater than 50pips and smaller than 150pips. 3. My Stoploss = 150 pips if the different between previous bar close and open is greater than 150 pips. |
|
You will need most of the functions from this section of the documentation: "Trade Functions"
Read that. Most of the functions come with sample code.
Also, read the book: "Mql4 Book"
learn to code it, or pay someone. We're not going to code it FOR you.
We are willing to HELP you when you post your attempt (using SRC)and the nature of your problem.
Sokphal: 1. My Stoploss = 50 pips if the previous close is not greater than 50 pips compare to previous bar open . 2. My Stoploss = previous bar open if the different between previous close and open is greater than 50pips and smaller than 150pips. 3. My Stoploss = 150 pips if the different between previous bar close and open is greater than 150 pips. |
|
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I am new to coding but I am learning about it.
I have been trying to set my stoploss to 3 different condition as follow ( Open_Buy Case):
1. My Stoploss = 50 pips if the previous close is not greater than 50 pips compare to previous bar open .
2. My Stoploss = previous bar open if the different between previous close and open is greater than 50pips and smaller than 150pips.
3. My Stoploss = 150 pips if the different between previous bar close and open is greater than 150 pips.
I have put the stoploss part only to ask for help.
I have tried for a week but i cant get it write.
here some code I have tried.
Please give me some advice.