Forex Zone - Forex Forum

want to develope my own indicator

Discussion started on New EA Coding

  • Starter
  • Posts: 4
  • Points: 0
  • Likes Received: 0
  • Reputation: +0/-0
hello sir ,

I want to develop my own indicator for mt4/mt5. i am in this industry from last 10 yrs and want to create my very own stretagies , and want to put it in a single indicator. I want to automate my strategy asap. Following are some points that i want to add in my indicator :-

1) Add 3 EXPONENTIAL MOVING AVERAGE using period 8. 
        a> open  ( aqua colour )
        b> high   ( magenda colour )
        c> low    ( magenda colour ) 

2) Add MACD period ( 8,13,9 )

3) Add RSI period ( 14 ) with levels ( 30,50,70 )

e.g. of BUY TRADE :-  when candle closes above all thee EXPONENTIAL MOVING AVERAGE with MACD buying signal and also                                     it crosses RSI 50 level from downside to upside ,our BUY call initiated.
                                   EXIT when only MACD give us a SELL signal.

e.g. of SELL TRADE :-   when candle closes below all thee EXPONENTIAL MOVING AVERAGE with MACD selling signal and also                                           it crosses RSI 50 level from upside to downside ,our sell call initiated.
                                   EXIT when only MACD give us a BUY signal.






Linkback: https://www.forex.zone/new-ea-coding/26/want-to-develope-my-own-indicator/591/
#1 - December 13, 2018, 04:29:59 AM

  • Sr. Member
  • Posts: 352
  • Points: 71
  • Likes Received: 150
  • Reputation: +11/-0
Just to be clear.
You said you want an indicator? 
The post reads more like you want an EA?
#2 - December 13, 2018, 10:47:46 AM

  • Full Member
  • Posts: 244
  • Points: 363
  • Likes Received: 140
  • Reputation: +16/-1
Hi,
Please specify what is the MACD buy/sell signal for you? Thanks.

If this is an indicator, then most likely you want it to draw arrows on the chart. Right?
What arrows do you want for open/close signals?
Thanks.
#3 - December 13, 2018, 01:53:25 PM

  • Starter
  • Posts: 4
  • Points: 0
  • Likes Received: 0
  • Reputation: +0/-0
Just to be clear.
You said you want an indicator?
The post reads more like you want an EA?
yes sir i want EA..... so what is the procedure for the same ? let me know......
#4 - December 13, 2018, 02:04:41 PM

  • Sr. Member
  • Posts: 352
  • Points: 71
  • Likes Received: 150
  • Reputation: +11/-0
CrazyProg and Admin are much more skilled at coding than me.
Here is my attempt at a very basic EA based on your rules.
The inputs are self explanatory.

I assumed if you say "MACD buying signal" you meant MACD is above the signal line. And vice versa for sell.

Please check it out and let me know if you want something changed.
If you use an ECN broker, I need to change the order functions, like I said, this is a basic version
Hope you enjoy it

#5 - December 13, 2018, 09:03:06 PM
Attachments:

  • Sr. Member
  • Posts: 352
  • Points: 71
  • Likes Received: 150
  • Reputation: +11/-0
When I am bored I play around.
Here is another version for the EA.
It trades on exactly the same signals, only difference here is you can choose between auto trading or semi-auto.

Auto - The EA will place orders with stops etc automatically.

Semi-Auto: When there is a buy/sell signal, the EA will pop up a message box, there you can choose to take the trade, or cancel the signal.  If you select "OK" the trade will be placed with your selected stops etc, the trades will still close when the MACD crosses, without opening a message box.
If you select cancel, it will wait until the next signal.

Needless to say, test this on a demo account first
#6 - December 13, 2018, 11:01:44 PM
Attachments:
« Last Edit: December 13, 2018, 11:14:32 PM by Francoisvs »

  • Starter
  • Posts: 4
  • Points: 0
  • Likes Received: 0
  • Reputation: +0/-0
i want EA. waiting for u r reply......
#7 - December 14, 2018, 06:42:10 AM

  • Starter
  • Posts: 4
  • Points: 0
  • Likes Received: 0
  • Reputation: +0/-0
CrazyProg and Admin are much more skilled at coding than me.
Here is my attempt at a very basic EA based on your rules.
The inputs are self explanatory.

I assumed if you say "MACD buying signal" you meant MACD is above the signal line. And vice versa for sell.

Please check it out and let me know if you want something changed.
If you use an ECN broker, I need to change the order functions, like I said, this is a basic version
Hope you enjoy it
hello sir , i downloaded u r both EA and paste it to metatrader 4 , but it will not load on chart. i dont know why ? EA is there in indicator list but when i upload that on any chart it shows nothing. so what should i do now ??
#8 - December 14, 2018, 06:57:15 AM

  • Sr. Member
  • Posts: 352
  • Points: 71
  • Likes Received: 150
  • Reputation: +11/-0
I did not write an indicator, but an, EA. 
It is an automated trading system (or a "trading robot").
Because all the indicators you use are standard MT4 indicators.

I attach a template for you. 

If you don't know how to use an EA.
Open your MT4 Data folder.
Under the MQL4 folder, open the "Experts" folder.
Copy the ex4 file to this "experts" folder,
Restart MT4 or right click on experts in your navigator pane, and click on refresh.

Drag the EA to the chart you want it to trade on.
Select your inputs, click, "ok", and you're done,

If you need more help, let me know please.
#9 - December 14, 2018, 10:22:45 AM
Attachments:

  • Starter
  • Posts: 1
  • Points: 0
  • Likes Received: 1
  • Reputation: +0/-0
This ea is working well now i am stetup for demo next i am post for what profit
#10 - January 08, 2019, 02:35:42 AM

paidto

how do you sir mandar whether you have used this EA, above that is a good EA
#11 - March 28, 2019, 02:59:37 AM

  • Jr. Member
  • Posts: 57
  • Points: 0
  • Likes Received: 0
  • Reputation: +0/-0
how do you sir mandar whether you have used this EA, above that is a good EA
what if you just try it yourself, sir
#12 - June 26, 2019, 10:54:42 AM

  • Newbie
  • Posts: 43
  • Points: 0
  • Likes Received: 0
  • Reputation: +0/-0
what if you just try it yourself, sir
that's a good decision
#13 - July 05, 2019, 09:30:06 AM

  • Newbie
  • Posts: 43
  • Points: 0
  • Likes Received: 0
  • Reputation: +0/-0
how do you sir mandar whether you have used this EA, above that is a good EA
how does EA work?
#14 - July 05, 2019, 09:31:12 AM

  • Jr. Member
  • Posts: 57
  • Points: 0
  • Likes Received: 0
  • Reputation: +0/-0
that's a good decision
as a trader, you must want to try it yourself
#15 - July 10, 2019, 03:15:19 PM

Members:

0 Members and 1 Guest are viewing this topic.