Jump to content

[Req] How to add price range function in EA?


Elma

Recommended Posts

Hi Scarface,

 

I’m trying to use this EA to trade forex.

I think it will be easier for me to control my trade if added current price action range function.

Unfortunately I’m not good in programming, hopefully you can guide me to solve my problem.

 

What I want is attach this EA to chart but EA activate only for our fixed price range.

 

For example:

Current EURUSD 1.5000

I want this EA to trade during 1.4800 – 1.4900 price range

If the price range is <1.4800 or >1.4900 this Ea will be deactivate and wait for my required price range.

 

Price range should be manually key in by the user, means that we can set difference price range.

Hope that you can help [-O< [-O< [-O< ^:)^ ^:)^ ^:)^

~Money often costs too much~
Link to comment
Share on other sites

Re: [Req] How to add price range function in EA?

 

Hi Elma,

 

Good day,

 

O.K, you want a function to be added to this code so you can trade only between a specific price range !!

 

I think I understood that idea. I will give it a try and let you know as soon as possible.

 

Best wishes,

a New Year 2011 has come, and the challenge has just started 8-)
Link to comment
Share on other sites

Re: [Req] How to add price range function in EA?

 

Hi Scarface,

 

Great.....Kudos you ...

Waiting for your good news....

 

=D> =D> =D> =D> =D>

:-bd :-bd :-bd :-bd :-bd

 

Thanks a lot...

 

With this function added on...it will save my time from sitting in front of computer...

 

-- 07 Dec 2009, 12:46 --

 

Scarface,

 

Any problem adding price fixed function to this EA?

 

Hope to hear a good news from you soon....

 

Thanks..

~Money often costs too much~
Link to comment
Share on other sites

  • 2 weeks later...

Re: [Req] How to add price range function in EA?

 

Hi Elma,

 

Good day,

 

I'm so sorry about the delay.

 

Life is so hectic and there is no time to do all request. My apologizes again.

 

O.k, first you should know that your template has some warnings:

 

Function "CloseBuyOrders" is not referenced and will be removed from exp-file

Function "CloseBuyOrdersHiddenTP" is not referenced and will be removed from exp-file

Function "CloseBuyOrdersHiddenSL" is not referenced and will be removed from exp-file

Function "CloseSellOrders" is not referenced and will be removed from exp-file

Function "CloseSellOrdersHiddenTP" is not referenced and will be removed from exp-file

Function "CloseSellOrdersHiddenSL" is not referenced and will be removed from exp-file

 

so the above functions are no longer used in your system .

 

and here you are the modified version of your system as you requested with range function. If your system is a template, you should change the file format to tpl and if it is EA so leave it the same as it is.

 

hxxp://xxx.4shared.com/file/170298103/d4fc6d52/Elma_EA_v1.html

 

please test and check whether it works or not. And if it didn't please let me know.

 

Thanks.

 

 

Best wishes,

a New Year 2011 has come, and the challenge has just started 8-)
Link to comment
Share on other sites

Re: [Req] How to add price range function in EA?

 

Hi Scarface,

 

Thanks for the modification.

Unfortunately the price range seem not working.

I try in back test and also forward test..it still open trade no matter what price range i set. :-?

 

beside that i have modified trailing stop for this EA but it still not working as what i want...

My request is it will start trailing after reached 200 pips [20pips]...so if the price drop back below 200pips it will close the trade at 200pips profit.

If you have time pls help to look into this as well...

 

Remarks:

1. This EA is purposely set to buy or sell only..if ReverseSystem=false it will buy only & if true it will sell only.

2. This EA is control under 2 magic, magic1 & magic2..At the moment i have changed all the setting to trade on magic1 only. LotsPercent1=100 & LotsPercent2=0

 

I have modify some basic parameter setting but price range and overall function still using previous code [ your modified code]...

so from now onward pls use attached file for modification...

 

hxxp://[email protected]/file/170427489/3d10ef5/Elma_EA_v1.html

 

Hope to hear from you soon.....

~Money often costs too much~
Link to comment
Share on other sites

Re: [Req] How to add price range function in EA?

 

Hi Elma,

 

Good day,

 

O.K, I will check the function again. Maybe I forgot to add something because I did everything in a hurry.

 

I will let you know as soon as possible.

 

by the way, thanks for the clarification and explaining precisely what you are up to.

 

Best wishes,

a New Year 2011 has come, and the challenge has just started 8-)
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...