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
Put this at the beginning of your start function.
if(Period() != PERIOD_D1)return(0);
Thanks Luxinterior.
one more favor if i may. i was wondering if you can help me make the attached simple indicator to a MTF indicator. it is simply identifing the highest and the lowest price for the past 56 daily period. it is part of the Turtles trading methodology.
RSI info?
I have got it to work :-)))
Hi, I am making a indicator just for showing the rsi value of the
different TF, but is it possible to get i to show if the value is going
UP og DOWN??
Thanks for any help.
Regards, halvard
---------------------------------------------------------------------------------------------------
int start()
{
int counted_bars=IndicatorCounted();
double fastDailyMom=iMomentum(NULL,PERIOD_D1,13,PRICE_CLOSE,0);
double slowMom=iMomentum(NULL,PERIOD_D1,26,PRICE_CLOSE,0);
double onehourRsi=iRSI(NULL,PERIOD_H1,9,PRICE_CLOSE,0);
double fastRsi=iRSI(NULL,PERIOD_D1,9,PRICE_CLOSE,0);
double weekRsi=iRSI(NULL,PERIOD_W1,9,PRICE_CLOSE,0);
double monthRsi=iRSI(NULL,PERIOD_MN1,9,PRICE_CLOSE,0);
//--------------------------------------------------------------------------
//--------------------------------------------------------------------------
Comment("\n" + " 1H RSI" + "\n" + " Value= " + onehourRsi + "\n" + "\n" + " Daily RSI" + "\n" + " Value= " + fastRsi + "\n" + "\n" + " Weekly Rsi 9" + "\n" + " Value= " + weekRsi + "\n" + "\n" + " Monthley Rsi 9" + "\n" + " Value= " + monthRsi);
Check the value of the one before (index 1). The see if the previous is higher > or lower > than the current one.
Lux
Help me build this EA pleaseee....
Hello every one!
Would any one please help me build this kind of EA:
(1) Brief description of my EA / indicator
My formula was just like this:
Open Position
If the price is up 10 pips, Take Profit, and Open Position again.
If the price is down 20 pips, Stop Loss.
If the price is down 20 pips twice in a series, Stop Loss, and Stop Trade until the price is up 10 pips twice in a series, then Open Position again.
Lot Size = 0.01
Currency = EUR/USD
Open Position = just buy
This formula is repeated after it's finished.
That EA must do this all over and over again.
(2) Which indicators should be monitored before building the logic?
There's no need to monitored any indicators.
(3) Entry
When should it open a buy position?
When the EA is activated.
When should it open a sell position?
Never.
(4) Exit
When should it close a buy position?
When the price is up 10 pips (Take Profit) or
When the price is down 20 pips (Stop Loss) and/or
When the price is down 20 pips twice in a series, then Stop Loss and Stop Trade until the price is up for 20 pips, then Open Position again.
When should it close a sell position?
Never.
(5) Trade Options
Take Profit = 10 pips.
Stop Loss = 20 pips. (after loss 20 pips twice in a row, then stop trading, wait until the price is up for 10 pips twice in a row, then open buy position again.
Trailing Stop = No.
This formula was based from Guerilla War Strategy that my country, Indonesia used for many generations to fight enemies that threatened our country.
Hopefully there's a programmer or coder guru that want to help me build this EA.
At least, if you could teach me how to build it, i think that's a great idea too...because i could learn to make my own EA.
I will appreciate all of your comment, because thats showed your concern and your care for me.
I really thank you if you could make me this EA.
If there's anything from my thread here make you complicated, feel free to share.
are you trading this strategy manually?
Hi Juannie,
according to the parameters that I see in the function requested with the EA, it looks very dangerous as you say, that the ea never should trade short.
The condition you are describing can blow your account within few days, if not same day, when there is a strong down trend, because in times of short trend every currency can go up 20, 30 or even 40 pips back (pull back) and then eat up another 20 pips or 40 (20 pips, twice in a row until stop trading).
Are you trading this manually?
...and why not build a reverse function that starts to trade short when the market changes from long to short trend?
the ea you are asking to code it is a price action ea, and I have several of them that can be modified in any price gap, but it is not working well, even with reverse condition.
I am using a manual scalping strategy where I buy and sell (not at the same time) with my indicators and does perform well, as you really cannot trust any ea fully (by not monitoring its trades) because even my best ea that I have coded that has the potential to make up to 20% per day, is wrong sometimes, and makes big losses when there is a change of direction, even that it trades in both directions.
Hi, Turanius
Hi, Turanius!
Yes, thank you very much for your feedback.
I'm using a different approach to manual trading (not using this strategy i posted).
I haven't try to manual trade this strategy.
But i have try to coded the EA myself with the help of my friends, and i realize about try to build a reverse function (Sell instead of Buy, if the market condition changed).
Very good anticipation by you.
Thank you for remembering me!
About don't trust the EA fully, i agreed with you.
I'm also monitoring my EA from time to time.
Eh, would you like to build me an EA with the system i mentioned?
Are you a programmer?
Thanx!
I need help
Hi ,
I have a simple EA. & there is an error appear when i tried to modify it
what i need is below:
every ( x) of trades .enter the following trade with lot quantity (y) ..
fore example :
lot= 0.1 and every 5 lot enter the next trade with 1 lot
like :
first trade ---- 0.1 lot
2nd-------------0.1
3-----------------0.1
4----------------0.1
5---------------0.1
6-----------------------1
7-------------0.1
8------------0.1
9-----------0.1
10---------0.1
11----------0.1
12--------------------1
GOD bless u ...
Slippage and decimals
Hello,
is this code correct for the 5 decimal brokers?
extern double StopLoss = 30; // in pips
extern double TakeProfit = 50; // in pips
extern int Slippage = 3; // in pips
SL=Bid - StopLoss*Point;
TP=Bid + TakeProfit*Point;
Slip=Slippage;
Ticket=OrderSend(Symbol(),0,0.1,Ask,Slip,SL,TP,"",0,Blue); [/CODE]
or this?
extern double StopLoss = 30; // in pips
extern double TakeProfit = 50; // in pips
extern int Slippage = 3; // in pips
SL=Bid - StopLoss*Point;
TP=Bid + TakeProfit*Point;
Slip=Slippage*Point;
Ticket=OrderSend(Symbol(),0,0.1,Ask,Slip,SL,TP,"",0,Blue);or this?
[CODE]
extern double StopLoss = 30; // in pips
extern double TakeProfit = 50; // in pips
extern int Slippage = 3; // in pips
SL=Bid - StopLoss*Point;
TP=Bid + TakeProfit*Point;
Slip=Slippage*10;
Ticket=OrderSend(Symbol(),0,0.1,Ask,Slip,SL,TP,"",0,Blue);RSI on CCI /code or indicator
I need an RSI that uses "Previous Indicators Data" from a CCI.
either I need to code it in my ea
OR
I need an indicator that does "RSI on CCI".
Can someone point me in a good direction?
Jamal
the last one is correct.