• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 6:58pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 6:58pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

MT4 Code question: pip conversion problems 5 replies

Code conversion MS to MT4 0 replies

Time Conversion Functions - Includes Daylight Savings 4 replies

Need help w/ data conversion 4 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 18
Attachments: Formula to code conversion.
Exit Attachments

Formula to code conversion.

  • Last Post
  •  
  • 1 Page 2 3
  • 1 Page 2 3
  •  
  • Post #21
  • Quote
  • Dec 15, 2007 8:07pm Dec 15, 2007 8:07pm
  •  mpurdy1973
  • | Joined Jan 2006 | Status: Member | 383 Posts
Quoting Bolt
Disliked
mpurdy1973 Thankyou for the very fast reply! I will try this now and see what happens. Many thanks.
Ignored
now that you have the code, can you explain why you use it? and how?
 
 
  • Post #22
  • Quote
  • Dec 15, 2007 8:29pm Dec 15, 2007 8:29pm
  •  lucidlamp
  • | Joined May 2007 | Status: I do my best while asleep... | 238 Posts
HerbertH,

The visual representation three posts up, very effective.

Regards,
lucidlamp
 
 
  • Post #23
  • Quote
  • Dec 16, 2007 4:42am Dec 16, 2007 4:42am
  •  HerbertH
  • | Joined Jun 2006 | Status: Member | 121 Posts
Thank you LucidLamp, it's always nice to get some feedback....


Quoting lucidlamp
Disliked
HerbertH,

The visual representation three posts up, very effective.

Regards,
lucidlamp
Ignored
 
 
  • Post #24
  • Quote
  • Edited Dec 17, 2007 6:07am Dec 16, 2007 8:00am | Edited Dec 17, 2007 6:07am
  •  Bolt
  • | Joined Feb 2006 | Status: Member | 59 Posts
As i got some help on this i will post back the latest version. I decided that there was no point in producing a one hour version and if the 15 min version was wrong it simply needed correcting.

15 min trading on auto is not profitable without many hard to code rules but it IS profitable in a semi automated fashion. What i mean by this is you should not trade Asia session it is clearly the number one killer for chop and noise. Trading should start about 6 am London time and then we look to see where the PSO indicating for our first trade. By drawing on my own manual experience for day trading you should not over trade. Therefore one should limit trades to a max of three per day and you should aim to leave the market around 5 pm same as the big boys do! Some days are clearly one entry and ride it till home time. Mostly there are 2 trades. A run into about 8.30 am London time and reverse or sometimes US open. Its these turn points we should try to exploit. However some days are clearly chopped up which is why i suggest trades are limited to a max of 3. If you attempt to fight a chopped market you will lose there is no doubt.

You must realize on these chop days there is nothing you can do but to get out of the market.

With the theory out of the way here is the latest 15 min indicator attached. It runs ONLY 15 min euro nothing else as its a tuned time series indicator. The lag setting must remain at 10. This is not really lag but it learning the past 10 bars to make a future turn point decision. This is how the system was trained. When the line is breached by a single bar with open and close each side you should wait till the first tick of the next bar AFTER the breach bar to see the positioning of the PSO line as sometimes is will hook up or down to keep you in trade or reverse. Of course if a powerful reversal it may have cleared out your stop. If the line is breached but a new bar tick opens above or below this is a clean entry and requires a tiny stop loss. Sometimes a market turn in these conditions using PSO can be achieved with under a 10 pip risk sometimes even less.

Also attached is my PSOhelper EA. it does NOT open trades that is your decision but what it does is control stops and moves them to the market and very useful in case you fall asleep without setting a stop it will add one on the next 15 min bar. Stops can move UP and DOWN based on the PSO line. This might be frightening but it tries to keep you out of trouble but its close enough in case someone bangs the market for 100 pips in a few seconds. The default is 7 pips plus the PSO gives about 15 pips average stop level for intraday trading. I found 7 pips is good for live.

The next file is OrderReliable. This must go into your experts Include folder. This is powerful order control which is barely used here except for making sure stops are legal to your broker. In other EA's its a godsend for live trading and handling delays, requotes and slips etc which you will never see on backtests. For days like last friday which are rare of course the EA just slid the stop down perfectly all day while remaining out of harms way.
Attached Image (click to enlarge)
Click to Enlarge

Name: euro.gif
Size: 22 KB
Attached Files
File Type: mq4 PSO.mq4   2 KB | 199 downloads
File Type: mq4 PSOhelper.mq4   4 KB | 209 downloads
File Type: mqh OrderReliable_V1_0_0.mqh   38 KB | 203 downloads
 
 
  • Post #25
  • Quote
  • Dec 16, 2007 8:11am Dec 16, 2007 8:11am
  •  smjones
  • Joined Mar 2006 | Status: THANK YOU MERLIN,TWEE and FF Team | 4,603 Posts
Hi, thanks for sharing this. The include file does not appear to be a mqh file. It appears to be clear.gif.

Could you check on this?
 
 
  • Post #26
  • Quote
  • Dec 16, 2007 8:18am Dec 16, 2007 8:18am
  •  Bolt
  • | Joined Feb 2006 | Status: Member | 59 Posts
seems ok to me the only gif is my screen shot.
 
 
  • Post #27
  • Quote
  • Dec 16, 2007 8:23am Dec 16, 2007 8:23am
  •  smjones
  • Joined Mar 2006 | Status: THANK YOU MERLIN,TWEE and FF Team | 4,603 Posts
Quoting Bolt
Disliked
seems ok to me the only gif is my screen shot.
Ignored
Did you attempt to download it? It shows up as clear.gif. Or perhaps it is a problem on my end.. I already have a copy of the version 2 0, so I am aware of what it is. I will look closer at my system.

Thanks for sharing this info and method from your formula...
 
 
  • Post #28
  • Quote
  • Dec 16, 2007 8:28am Dec 16, 2007 8:28am
  •  Bolt
  • | Joined Feb 2006 | Status: Member | 59 Posts
as far as i know the OrderReliable is only up to version 1.00 Its confusion as the numbering was altered from earlier version as shown below. In any case its only stops control but my EA header will need changing to suit your version.

So your version "two" is probably 0.2

2006-07-31: 1.0.0: Graduated to 1.0.0 status.
// Functionality the same as 0.2.5. Added additional comments,
// updated version string properly.
//
// 2006-07-19: 0.2.5: Modified by Derk Wehler
// Cleaned up commenting and code, to make more
// readable; added additional comments
// Added OrderCloseReliable(), modeling largely
// after OrderModifyReliable()
//
// 2006-07-14: 0.2.4: ERR_TRADE_TIMEOUT now a retryable error for modify
// only. Unclear about what to do for send because that
// may result in duplicate trades.
// Adds OrderReliableLastErr()
//
// 2006-06-07: 0.2.3: Version number now in log comments. Docs updated.
// OP_BUYLIMIT/OP_SELLLIMIT added. Increase retry time
//
// 2006-06-07: 0.2.2: Fixed int/bool type mismatch compiler ignored
//
// 2006-06-06: 0.2.1: Returns success if modification is redundant
//
// 2006-06-06: 0.2.0: Added OrderModifyReliable
//
// 2006-06-05: 0.1.2: Fixed idiotic typographical bug.
 
 
  • Post #29
  • Quote
  • Dec 16, 2007 8:30am Dec 16, 2007 8:30am
  •  smjones
  • Joined Mar 2006 | Status: THANK YOU MERLIN,TWEE and FF Team | 4,603 Posts
Quoting Bolt
Disliked
as far as i know the OrderReliable is only up to version 1.00 Its confusion as the numbering was altered from earlier version as shown below. In any case its only stops control but my EA header will need changing to suit your version.

So your version "two" is probably 0.2

2006-07-31: 1.0.0: Graduated to 1.0.0 status.
// Functionality the same as 0.2.5. Added additional comments,
// updated version string properly.
//
// 2006-07-19: 0.2.5: Modified by Derk Wehler
// Cleaned up commenting and code, to make more
// readable; added additional comments
// Added OrderCloseReliable(), modeling largely
// after OrderModifyReliable()
//
// 2006-07-14: 0.2.4: ERR_TRADE_TIMEOUT now a retryable error for modify
// only. Unclear about what to do for send because that
// may result in duplicate trades.
// Adds OrderReliableLastErr()
//
// 2006-06-07: 0.2.3: Version number now in log comments. Docs updated.
// OP_BUYLIMIT/OP_SELLLIMIT added. Increase retry time
//
// 2006-06-07: 0.2.2: Fixed int/bool type mismatch compiler ignored
//
// 2006-06-06: 0.2.1: Returns success if modification is redundant
//
// 2006-06-06: 0.2.0: Added OrderModifyReliable
//
// 2006-06-05: 0.1.2: Fixed idiotic typographical bug.
Ignored
Thaks for posting the text. I can post the latest version if you wish, or the link to it, but I do not want to clutter or thread.

EDIT, sorry my mistake. V1 is the most recent. I just attmepted to download it again and it is working fine. So the problem must have been on my end.. Sorry for the waste of your time there LOL..
thanks again.
 
 
  • Post #30
  • Quote
  • Dec 17, 2007 5:18am Dec 17, 2007 5:18am
  •  Bolt
  • | Joined Feb 2006 | Status: Member | 59 Posts
Perfect day again for my PSO. One trade and another 100 pips up already.!
 
 
  • Post #31
  • Quote
  • Edited at 8:13am Dec 17, 2007 7:28am | Edited at 8:13am
  •  smjones
  • Joined Mar 2006 | Status: THANK YOU MERLIN,TWEE and FF Team | 4,603 Posts
Hi, This is a facinating concept... A quick question, how did you arrive at 20% as a risk amount to use? Thanks for posting the finished concept.
 
 
  • Post #32
  • Quote
  • Dec 17, 2007 8:00am Dec 17, 2007 8:00am
  •  Bolt
  • | Joined Feb 2006 | Status: Member | 59 Posts
its a good risk for most EA's that are backtested. Not too heavy but enough for smaller accounts to have something to show after a few weeks. BTW only need to find a consistent 10 pips a day to make a fortune.
 
 
  • Post #33
  • Quote
  • Dec 17, 2007 8:03am Dec 17, 2007 8:03am
  •  Bolt
  • | Joined Feb 2006 | Status: Member | 59 Posts
PSO is now long second trade for the day. It was precision entry with new bar tick over the line at 14373 risk only 10 pips. Forgot to add never worry about leaving pips behind only be concerned that the last trade was a profitable one. If i only get 2 or 3 trades with 20 to 40 pips on each then it a home run.
 
 
  • Post #34
  • Quote
  • Dec 17, 2007 8:05am Dec 17, 2007 8:05am
  •  smjones
  • Joined Mar 2006 | Status: THANK YOU MERLIN,TWEE and FF Team | 4,603 Posts
Quoting Bolt
Disliked
PSO is now long second trade for the day. It was precision entry with new bar tick over the line at 14373 risk only 10 pips.
Ignored
Are you letting the profit run until the next opposite signal, or are you closing your trade at a predetermined amount? The reason I ask, is you comment about 10 pips a day. BTW I agree with that statement.
 
 
  • Post #35
  • Quote
  • Dec 17, 2007 8:13am Dec 17, 2007 8:13am
  •  Bolt
  • | Joined Feb 2006 | Status: Member | 59 Posts
no i let it run till reversal signal. With any trend type system it WILL suffer from chop sometimes and its only by allowing the system to run with trends it can cover those costs.......and some. Anyway i see how this trade plays out. US open can be nasty. If things start to get messy its time to walk away otherwise the morning gains will be lost. 2 or 3 trades is plenty per day.
 
 
  • Post #36
  • Quote
  • Dec 17, 2007 8:16am Dec 17, 2007 8:16am
  •  smjones
  • Joined Mar 2006 | Status: THANK YOU MERLIN,TWEE and FF Team | 4,603 Posts
Quoting Bolt
Disliked
no i let it run till reversal signal. With any trend type system it WILL suffer from chop sometimes and its only by allowing the system to run with trends it can cover those costs.......and some. Anyway i see how this trade plays out. US open can be nasty. If things start to get messy its time to walk away otherwise the morning gains will be lost. 2 or 3 trades is plenty per day.
Ignored
Ok, thanks much
 
 
  • Post #37
  • Quote
  • Dec 17, 2007 9:33am Dec 17, 2007 9:33am
  •  Bolt
  • | Joined Feb 2006 | Status: Member | 59 Posts
run in to chop now and second trade stopped out locking in +10. Not doing the 3rd trade today its too late in the day.

GL time to do something else.
 
 
  • Post #38
  • Quote
  • Dec 20, 2007 6:55am Dec 20, 2007 6:55am
  •  Bolt
  • | Joined Feb 2006 | Status: Member | 59 Posts
For my friends here is latest version i been working on. As explained in earlier post 15 min auto trading is not profitable without very intensive filters but 1 hour trading can cover then night time whips while exploiting the daily moves.

Attached is my 1 hour full auto trading EA with 1 hour PSO indicator which is genetically mastered

Dont forget to put OrderReliable into Include folder otherwise it wont work. BTW this EA works only on 1hour bars following 1st tick for decisions on direction. Thus backtester only quick full bars only no need for 1 min as you will get the very same result.
Attached Image (click to enlarge)
Click to Enlarge

Name: TesterGraph.gif
Size: 8 KB
Attached Files
File Type: mqh OrderReliable_V1_0_0.mqh   38 KB | 289 downloads
File Type: mq4 PSOhour.mq4   2 KB | 332 downloads
File Type: mq4 PSO_Trader.mq4   6 KB | 299 downloads
 
 
  • Post #39
  • Quote
  • Dec 20, 2007 6:58am Dec 20, 2007 6:58am
  •  smjones
  • Joined Mar 2006 | Status: THANK YOU MERLIN,TWEE and FF Team | 4,603 Posts
Quoting Bolt
Disliked
For my friends here is latest version i been working on. As explained in earlier post 15 min auto trading is not profitable without very intensive filters but 1 hour trading can cover then night time whips while exploiting the daily moves.

Attached is my 1 hour full auto trading EA with 1 hour PSO indicator which is genetically mastered

Dont forget to put OrderReliable into Include folder otherwise it wont work. BTW this EA works only on 1hour bars following 1st tick for decisions on direction. Thus backtester only quick full bars only no need for 1 min as you will get the very same result.
Ignored
Is it still only for Eurusd? Thanks for posting the update...
 
 
  • Post #40
  • Quote
  • Dec 20, 2007 7:05am Dec 20, 2007 7:05am
  •  Bolt
  • | Joined Feb 2006 | Status: Member | 59 Posts
Yes only for 1 hour euro. The genetic weights are only made for euro. It should stay in tune for about 8 weeks however i wouldn't trade over Xmas because this is a trend hunter and whips of 20 to 30 pips will grind it down. Like most EA's i strongly recommend they are shut down till Monday 7th January 2008.
 
 
  • Platform Tech
  • /
  • Formula to code conversion.
  • Reply to Thread
    • 1 Page 2 3
    • 1 Page 2 3
0 traders viewing now
  • More
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2022