Forex
Google

Go Back   Forex Trading > Metatrader Training > Metatrader 4 mql 4 - Development course > Questions
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


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

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-18-2006, 09:18 PM
timbo timbo is offline
Junior Member
 
Join Date: Nov 2005
Posts: 14
timbo is on a distinguished road
LastTradeTime equivalent in MT4?

Hello.... can anyone tell me what the MT4 equivalent of LastTradeTime is? I'm trying to convert the following line to MT4:

mql line:
If((CurTime-LastTradeTime)<300) then Exit;

Any suggestions would be appreciated!

Tim
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-18-2006, 10:27 PM
Michel Michel is offline
Senior Member
 
Join Date: Feb 2006
Posts: 502
Michel is on a distinguished road
Quote:
Originally Posted by timbo
Hello.... can anyone tell me what the MT4 equivalent of LastTradeTime is? I'm trying to convert the following line to MT4:

mql line:
If((CurTime-LastTradeTime)<300) then Exit;

Any suggestions would be appreciated!

Tim
After each succesfull server order like OrderSend() or OrderClose() ... you may add "LastTradeTime = CurTime();"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-19-2006, 07:52 AM
timbo timbo is offline
Junior Member
 
Join Date: Nov 2005
Posts: 14
timbo is on a distinguished road
Thumbs up

Quote:
Originally Posted by Michel
After each succesfull server order like OrderSend() or OrderClose() ... you may add "LastTradeTime = CurTime();"
That's fantastic.... thanks for your help Michel!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 08-17-2007, 02:33 PM
Bongo Bongo is offline
Senior Member
 
Join Date: Oct 2005
Posts: 278
Bongo is on a distinguished road
I'm using this formula but looking that is not working:
if ((TimeCurrent()-LastTradeTime)<60) return(0);
What is wrong?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ez2 wave have have an MT4 equivalent? SPACECHIMP Metatrader 4 2 08-26-2007 07:05 AM
MT equivalent of VT S/R indicator soso_beton Indicators - Metatrader 4 3 04-26-2007 07:16 AM


All times are GMT. The time now is 03:26 AM.