| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| My shell EA code https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=79 |
Page 2 of 23 |
| Author: | gaheitman [ Wed Nov 30, 2011 10:51 am ] |
| Post subject: | Boxes! |
I thought this was way cool too, and while I'm waiting for the US Session to roll around I decided to play with your idea a bit. I changed the font to 300 for both of them. I use a white background with my charts, so I changed the color of the first one to white and the second to dark grey. I then offset the first one to line up with the beginning of the comment display and the second to be slightly offset from the first. The final effect is what looks like a floating window with a shadow. I know, I know, time well spent. The code: Code: Select all Enjoy! ;>
|
|
| Author: | magft [ Wed Nov 30, 2011 11:31 am ] |
| Post subject: | Re: Boxes! |
That is very nice, I think this is a good idea as it makes it easy to see comments. I will look into this |
|
| Author: | SteveHopwood [ Thu Dec 01, 2011 10:27 pm ] |
| Post subject: | Re: My shell EA code |
Latest update in post 1. For those of a delicate disposition, here is the sanitised rationale: It appears that the markets can sometimes be moving so quickly that ECN brokers will be unable to allow modifications of trades that update stop losses and take profits. I have added code to CountOpenTrades() that will detect when this happens, and further call functions that will replace the missing tp/sl. Now, here is what I really mean. Do not read on if bad language offends you. Only a total tit fails to recognise that some bastard criminals have rabidly adopted ECN in the hope that this will happen:
So, these mindless, turd-brained (and I use the term 'brained' with reservation), manipulative fucking bastards are forcing those of us daft enough to play their game to accept that:
I will defeat these bastards. |
|
| Author: | magft [ Fri Dec 02, 2011 11:39 am ] |
| Post subject: | Re: My shell EA code |
Nice one Steve. BTW the time checking script by George had to be modified to work correctly. I think it now works without issues. Code: Select all |
|
| Author: | garyfritz [ Fri Dec 02, 2011 5:17 pm ] |
| Post subject: | Re: My shell EA code |
Dear me, Steve. It's not healthy to hold your feelings in. Tell us what you REALLY think. |
|
| Author: | SteveHopwood [ Sat Dec 03, 2011 6:19 pm ] |
| Post subject: | Re: My shell EA code |
Latest update in post 1. Please read 'Coding the trading decision' for details. |
|
| Author: | SteveHopwood [ Tue Dec 06, 2011 11:32 pm ] |
| Post subject: | Re: My shell EA code |
Latest update in post 1. Fixed a few bloops - some of them major. Added functions to detect Stealth pending order lines. void LookForTradingOpportunities() needs some extra code to facilitate easy coding of pending/market orders, depending on the system being traded. Lots of George influence in all this, so things are looking better and better. |
|
| Author: | SteveHopwood [ Wed Dec 07, 2011 5:51 pm ] |
| Post subject: | Re: My shell EA code |
Latest update in post 1. George suggested a more efficient way of working out when to call CalculateDailyResult(0 in start(). View the comments I have left for an explanation. George, you will be proud of me. I have removed a 'money-costing' variable from CDR. |
|
| Author: | gaheitman [ Wed Dec 07, 2011 8:47 pm ] |
| Post subject: | Re: My shell EA code |
Excellent, we can all apply the savings to our trading accounts! |
|
| Author: | SteveHopwood [ Wed Dec 07, 2011 10:32 pm ] |
| Post subject: | Re: My shell EA code |
Hehe. Yep. Genuinely George, thanks for all the help in tightening up my code. You are helping lots of us enormously. As my code gets better, so does LUC have fewer opportunities to invite his buddies to lunch at our expense. |
|
| All times are UTC | Page 2 of 23 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|