| New signals service! | |
|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
|
|
LinkBack (1) | Thread Tools |
|
|
|||
|
|||
|
I have a trailing stop, it up dates every tick during a 15 min bar, and the stop is calculated 20 pip from BID price.
But I would prefer that the trailing stop calculates at the end of the of the most recent 15 minute bar. So this would this be on a BUY if( BID > High[1] - (20 * Point)) StopLoss = High[1] - (20 * Point); So this is to allow the current 15 minute bar to whipsaw around as much as it likes, before stops are moved. Is this the idea, or are there others out there ?? Thx |
|
|
|||
|
|||
|
Quote:
This makes your indicator much more efficient - by not having to calculate all avaialble bars every tick, just the current bar. |
|
|
||||
|
||||
|
Quote:
Omelette, You have a point there. But, i'm not the kind of person who is going to do something and doesn't understand it. I just have to understand it. ![]() Okay, here goes: Am I right? i.e., Bars=23000 IndicatorCounted()=(Bars-1) which is 22999, right? So, i.e., (Rain=Bars-IndicatorCounted()=1),right? And....i.e., my code says... double rHigh; rHigh=High[?] ?=Rain,right??? So, if I put 0 in ?, then it will calculate the High of the current bar, right? But Rain=1 remember??? So, it will calculate data for previous bar??? Also, what does this line mean??? if(counted_bars>0) counted_bars--; Thank You all!!! ![]()
__________________
God Bless Everyone, and their trading logic. |
|
|
|||
|
|||
|
Opening two simultaneous orders
Hi all,
I'm new to MQL and I am trying to write a program that will open an order on two different pairs at one time. For example, when GBP/USD ask hits 2.0500, open a short on both GBP/USD and EUR/USD. I can only get the position to open correctly on the pair that has the EA attached to it. On the other pair I receive Error 129 (outdated prices). I have tried to use RefreshRates() and it doesn't seem to help, but I could be doing it wrong (I've read the documentation, but didn't get much from it). Can anyone point me to some information that can help me out or post some basic code to get this to work? I posted this question over at MQL4.com and haven't gotten a response yet so I thought I would try the good group here. I'm sure there's something posted already on this but I just can't find it. Thanks! |
|
|
|||
|
|||
|
System that is not indicators dependant
The system is called the 1 Hour bar reversal and breakout.
This system is simple and follow simple rule of price action, the rule is that after a 90 pips movement in a 1 hour bar , there will be a move of 20 pips in both directions. I didnt build my analysis on assumptions nether on a test that expands for a week but rather applied the logic on excel sheet for the whole history of GBPJPY. The analyses include results of profit and loss percentage. I will be glad to share the results with an expert who can code and verify the data. The code for this expert can be few lines since the idea is very very simple. If results are acceptable and profitable over a range of forward testing (3 months) period, then we can (all those involved in the development) introduce this expert on the commercial section. |
|
|
||||
|
||||
|
Hello
I need some help on creating a Script that can open Multiple Pending lots (5 lots Total all at once) A Pending BuyStop & BuyLimit, SellStop & SellLimit Scripts Some must haves: -Ability to change settings when script is intitiated (GUI) Have these settings in the GUI. -EntryPrice 1st Lot: 20 TP , with "x" lots 2nd Lot: 30 TP , with "x" lots 3rd Lot: 40 TP , with "x" lots 4th Lot: 50 TP , with "x" lots 5th Lot: 60 TP , with "x" lots -Stoploss -TradeComment -Expiration time e.g 20:00pm --Ive tried to make one myself but no luck can only open one lot..lol Thank for the help Last edited by keymaker; 09-14-2007 at 03:22 PM. |
|
|
||||
|
||||
|
USING THIS INDICATOR IN AN EA:
PHP Code:
HOW DO I FIND THE CURRENT HIGH 2 STEPS BACK SINCE THIS INDICATOR STEPS UP OR DOWN ON DAILY HIGHS?? PHP Code:
INDICATOR IS ATTACHED - IF YOU HAVE THE RIGHT ANSWER, PLEASE TELL ME THE CODING. MUCH THANKS IN ADVANCE!! Dave |
| Bookmarks |
| Tags |
| candle time, CHinGsMAroonCLK, coders guru, expert advisor, forex, how to code, I_XO_A_H, mechanical trading, trading |
| Thread Tools | |
|
|
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/metatrader-programming/554-how-code.html
|
||||
| Posted By | For | Type | Date | |
| Need an experienced programmer? - Page 2 | Post #0 | Refback | 09-24-2008 07:24 AM | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to code this? | iscuba11 | Metatrader 4 mql 4 - Development course | 1 | 08-03-2007 05:22 PM |