| 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 | Thread Tools | Display Modes |
|
|||
|
Quote:
So, some concerns I see: 1) do you want the shift as 5 or applied price to be 5? I am assuming you want the price to be 5 = PRICE_TYPICAL. 2) you have the modes reversed. MODE_UPPER = 1, MODE_LOWER = 2. 3) you are forcing the shift to 0, which is the current bar only. Not sure if this is what you want, but for an indicator that draws lines it needs to be a variable. An EA is ok with a 0. Mark |
|
|||
|
objectCreate("pbstat",StartX,StartY,"test",10,"Ari al Narrow",FontColor);
|
|
|||
|
Closing Order by Expiration
Hi,
iīm working on a momentum-strategy and I think it would be best to close orders by a expirationtime. static datetime TradeTime; ... TradeTime = iTime(NULL,PERIOD_D1,0); ... ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,0,Ask-StopLoss,Ask+spread*Point+TakeProfit,"My EA",1234,TradeTime+(Hour()+1)*60*60,Green); I want to run it in 30M-timeframe. While opening a position, I want to set the expiration time of the order to actual time + 1 hour, so it MUST be closed after 2 bars. I hope someone can help me, the code above donīt work like it should be... Thank you for reading, JustY |
|
||||
|
Quote:
PHP Code:
PHP Code:
|
![]() |
| Bookmarks |
| Tags |
| automated close order, close, eas, forex, learn mql4, learn mql4 video, mql4 learning, OrderCloseBy, profit, reach, secure profit function, T101_v1.11_orest_IBFXm.mq4, learning mql4 |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Learning Cycles For New Traders | Dan7974 | General Discussion | 350 | 01-18-2008 07:04 PM |
| Learning to code for autotrading | GoatT | Metatrader Programming | 8 | 01-10-2007 09:55 PM |
| Self learning expert | mrtools | Expert Advisors - Metatrader 4 | 32 | 10-22-2006 06:29 PM |