Par Sar EA Help
  #1 (permalink)  
Old 07-19-2006, 06:42 AM
juxta14's Avatar
Freshman
 
Join Date: Jul 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
juxta14 is on a distinguished road
Default Par Sar EA Help

Hello all,

Scorpion, I want to thank you first for your awesome program-fisherman zerocode. I have no knowledge of coding but was really surprised at how easy you have made your code generator. It is really a great tool.

I have downloaded that program and been playing with it. I actually generated code for a simple system I have been using but still testing which is the Par Sar indicator method. I generated an EA using the Par Sar (0.10 , 0.20) but I noticed that It was only trading 1 currency at a time even when attached to about 4 curencies in the same time frame, it won't make another trade until the current trade as being exited.

I NEED HELP for you to check the code or tell me what to add so that it can trade multiple currencies in the same time frame at the same time and not just one currency at a time.

Also I will like the EA to be able to trade at specific time of the day for example 0.00gmt to 12.00gmt.

I'll be grateful if you or someone can help with this 2 modifications.

Thanks
Attached Files
File Type: mql psarea.mql (4.5 KB, 42 views)
Sponsored Links EA Shark +1064% Return
Stock Market Crash? No Problem!
We Are Making Profits As Usual. More Info
Reply With Quote
  #2 (permalink)  
Old 07-21-2006, 04:00 AM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,992
Thanks: 125
Thanked 383 Times in 152 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default

I don't why my post wasn't posted correctly in this thread in the last two days.

Anyway, it's a limitation of zerocode actually. The produced experts can run only one pair. And to make matter worse, there's no easy workaround to this, sorry. When i finish ZeroCode for MetaTrader 4, everything will be much, MUCH, better. This limitation would be lifted.

Quote:
Also I will like the EA to be able to trade at specific time of the day for example 0.00gmt to 12.00gmt.
Add these to buy & sell logics:
AND Hour >= 0
AND Hour < 12

If chart time is not GMT then you have to add/substract the numbers. E.g. Chart time is GMT+2, the logics would be Hour >= 2 AND Hour < 14.
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.
Reply With Quote
  #3 (permalink)  
Old 07-21-2006, 04:33 AM
juxta14's Avatar
Freshman
 
Join Date: Jul 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
juxta14 is on a distinguished road
Default

Thank you Scorpion. I'll try that.
Reply With Quote
  #4 (permalink)  
Old 07-21-2006, 10:34 PM
juxta14's Avatar
Freshman
 
Join Date: Jul 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
juxta14 is on a distinguished road
Default

Hello Scorpion,

that logic works quite alright, but i noticed that after the specified time it just does not open a new trade neither does it close the current one.

So my question now is what do I need to do for it to close the trade at the specified time.

Example: EA logic is
AND Hour >= 0, AND Hour < 12

I want it to close of any current trade at exactly 12 GMT,

what logic should I apply?

Thanks for all your help on this forum.
Reply With Quote
  #5 (permalink)  
Old 07-22-2006, 12:59 AM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,992
Thanks: 125
Thanked 383 Times in 152 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default

Hi

Did you add previous logics to Buy and Sell only? Don't add them to Close Logics.

To close trade at 12:00 GMT, add to Close Logics:

AND Hour = 12
AND Minute >= 0
AND Minute <= 1
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.
Reply With Quote
  #6 (permalink)  
Old 07-23-2006, 07:59 AM
juxta14's Avatar
Freshman
 
Join Date: Jul 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
juxta14 is on a distinguished road
Default

I actually added the previous logic only to Buy and Sell.

Now, I'll add the new one to Close Logic.

Thanks once again, I'll try that when market reopens tommorow sunday.
Reply With Quote
  #7 (permalink)  
Old 07-28-2006, 02:03 AM
juxta14's Avatar
Freshman
 
Join Date: Jul 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
juxta14 is on a distinguished road
Default

Hi Scorpion,

Everything working so far so good as I have requested and you have helped with the modifications.

However, I am thinking of a scenerio whereby I want the expert advisor to trade only ONCE and as soon as it hits TP or SL it no longer trades unless it is manually activated again, what code should I add.

Thanks
Reply With Quote
  #8 (permalink)  
Old 08-02-2006, 02:29 AM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,992
Thanks: 125
Thanked 383 Times in 152 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default

Heh will get back to you in an hour. Gotta go out for breakfast. (Is it night time overthere?)
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.
Reply With Quote
  #9 (permalink)  
Old 08-02-2006, 02:33 AM
juxta14's Avatar
Freshman
 
Join Date: Jul 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
juxta14 is on a distinguished road
Default

yes it's 7:32 PM here Canada Mountain Time
__________________
Stars don't struggle to shine, Rivers don't struggle to flow, also I will never struggle to excel in life!
Reply With Quote
  #10 (permalink)  
Old 08-02-2006, 05:42 AM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,992
Thanks: 125
Thanked 383 Times in 152 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default

Ok, i'm back.

Ok first, add below to buy logics: AND bIsBuying = False

Add to sell logics: AND bIsSelling = False

Compile to mql and open it.

Find line: var: cnt(0),IsBuying(False),IsSelling(False),IsClosing( False)
Below that, add var: bIsBuying(False), bIsSelling(False);

Find line: IsClosing = ....
Below that, add
if IsBuying then bIsBuying = true;
if IsSelling then bIsSelling = true;


That's it for the dirty hack.
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fisher Transform Dick Trading Systems 85 11-11-2008 09:48 AM
Super Ea AQUILEZ Trading Systems 142 09-24-2008 02:25 PM
Ea swirly MetaTrader and ZeroCode 3 08-29-2008 02:39 PM
Have indicator running, need EA help Bill R System Coding 3 10-08-2007 06:36 PM
Scorpion Need Help Convert EA Please txsundevil Trading Systems 2 09-28-2006 08:18 PM


All times are GMT. The time now is 07:36 AM.
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now

Main Menu

Economic Forecast