النتائج 1 إلى 7 من 7
الموضوع: One position by trend direction
- 23-01-2014, 01:35 PM #1
One position by trend direction
Assalamou alaykoum
I am trying to program an expert on MT4.
I wanted to know if anyone had a script that opens a single position towards trend.
The idea is as follows:
1 / The market is bullish, I open a buy position. It closes after a certain time after a SL or TP. As the market is bullish, I do not want even the expert opens a buy position.
2 / bear market, I opened a sales position. It closes after a certain time after a SL or TP. As the market is bearish, I do not want even the expert opens a sales position.
Chokran ala moussahamatikoum
- 23-01-2014, 07:54 PM #2
وعليكم السلام ورحمة الله وبركاته
ما هي محاولتك التي توصلت لها وسوف أساعدك في برمجة الإكسبرت الذي تريده في أي جزء ينقصك
- 23-01-2014, 09:17 PM #3
Thank you for your reply Mr.Dollar
The idea is as follows:
1 / Take an indicator that shows the direction of the trend
2 / If he says he is bullish I buy EURUSD at 1.30000 eg, SL and TP 100 pips
In both cases, the trend is still bullish and the price reaches 1.30100 ==> TP reached, I pocketed the gain and no more trade until the trend becomes bearish
Like if this upward trend in SL
3 / If he says he is bearish I sell EURUSD at 1.30000 eg, SL and TP 100 pips
In both cases, the trend is still bearish and the price reaches 1.29900 ==> TP reached, I pocketed the gain and no more trade until the trend is upward
Same if the SL in this downward trend
- 23-01-2014, 09:20 PM #4
badi bass script or function wich give me the trade type of the last position for the current symbol
input parameter = magic number
Chokran !!
- 27-01-2014, 01:37 AM #5
.This is the script wich a needed, in case if someone want it. Now it's ok. Thanks all
- 28-01-2014, 04:46 AM #6
- 28-01-2014, 04:28 PM #7
You're right ! Thanks