Thread: Martingale EA
View Single Post
  #124 (permalink)  
Old 01-18-2008, 01:24 AM
omelette omelette is offline
Senior Member
 
Join Date: Jan 2006
Posts: 1,119
omelette is on a distinguished road
Quote:
Originally Posted by wolfe View Post
Omelette,

I have a question about part of your code revision:

In the following code should the second GlobalVariableCheck be !GlobalVariableCheck("TFX_v1.2_LastSellTicket")?

PHP Code:
if (OTBM(Magic_Number) == || !GlobalVariableCheck("TFX_v1.2_LastBuyTicket")
 || !
GlobalVariableCheck("TFX_v1.2_LastBuyTicket")|| !GlobalVariableCheck("TFX_v1.2_CurrentTicket")) {
 
GlobalVariableSet("TFX_v1.2_LastBuyTicket",0);
 
GlobalVariableSet("TFX_v1.2_LastSellTicket",0);
 
GlobalVariableSet("TFX_v1.2_CurrentTicket",0); }
else { 
LastBuyTicket GlobalVariableGet("TFX_v1.2_LastBuyTicket");
 
LastSellTicket GlobalVariableGet("TFX_v1.2_LastSellTicket");
 
Ticket GlobalVariableGet("TFX_v1.2_CurrentTicket"); } 
Thanks again for the great help.
Yes it should, sorry about that. To answer your other question, yes, hopefully, this will now pick up and carry on after a reset.
Reply With Quote