|
|||||||
| 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 |
|
|||
|
Question: Time base exit
Hi,
How can I know the duration expresse by number of bars (in the current chart) for a specific position ? Actually, I want to close a position automatically after 30 bars (in my expert-advisor) How can I do that ? 10X ! |
|
|||
|
But how can I code this (in mql4)?
I understand what you said, but I still don't know how to code it in mql4.
How can I know the number of bars from the opening of a specific position ? The timeframe is not important because I simply want to close a posision after X bars (no matter the timeframe) |
|
|||
|
Look at Templates to create EAs and Indicators
It is template to create EA. May be you will find it. I can not write EA from the beginning up to end. Will wait for the codersguru lessons. I think Codersguru may answer. Sorry. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| time question | ajk | Questions | 1 | 03-23-2007 03:02 AM |
| Time fucntion question | knili | Metatrader 4 | 2 | 09-18-2006 07:52 PM |
| Simple question of determining the time of day | Fishtank | Metatrader 4 | 2 | 04-04-2006 04:12 AM |