New Firebird EA - page 24

 
kamyar:
hi all

che this statement

begin from 2006.08.30 17:00GMT to now.

my latest statement, starting night of 23 to 24 August, 3 pairs, Gimex.

.

It`s very good to test the EA with different brokers, I think so

 
 

7days, 3 pairs,Gimex

 

Compile Error

Hi,HolyGuy7

I am forward testing Firebird v1.0c1.

While compiling I am getting the warning messages as :

-----------------------------------------------------------------------

- Function "CloseTheseTrades" is not referenced and will be removed from exp-file

-Function "CloseLoosingTrades" is not referenced and will be removed from exp-file

-Function "iFXAnalyser" is not referenced and will be removed from exp-file

-Function "GoalCheck" is not referenced and will be removed from exp-file

-Function "GetSlippage" is not referenced and will be removed from exp-file

----------------------------------------------------------------------

can you please verify this.

Regards.

SIDDESH

Files:
 
SIDDESH:
Hi,HolyGuy7

I am forward testing Firebird v1.0c1.

While compiling I am getting the warning messages as :

-----------------------------------------------------------------------

- Function "CloseTheseTrades" is not referenced and will be removed from exp-file

-Function "CloseLoosingTrades" is not referenced and will be removed from exp-file

-Function "iFXAnalyser" is not referenced and will be removed from exp-file

-Function "GoalCheck" is not referenced and will be removed from exp-file

-Function "GetSlippage" is not referenced and will be removed from exp-file

----------------------------------------------------------------------

can you please verify this.

Regards.

SIDDESH

This is fine. It's just code that the coder decided was not needed and voided out but left in probably for reference.

 

There is a version of Firebird named 3.2...anybody using it?

ES

 
ElectricSavant:
There is a version of Firebird named 3.2...anybody using it? ES

I wouldn't use that one. It's dangerous. All of a sudden it will decide to make huge lot trades. I always trade 0.01 lots then it did this 21, 50 lot size trades. Weird

 

Hey guys, I know version C has a "backtest" feature which will not trade after a loss for X amount of days.

int CheckJustClosedOrder()

{

int cnt;

datetime orderclosetime;

string rightnow;

int rightnow2;

int TheHistoryTotal=HistoryTotal();

int difference;

int flag=0;

for(cnt=0;cnt<TheHistoryTotal;cnt++)

{

if(OrderSelect(cnt,SELECT_BY_POS,MODE_HISTORY)==true)

{

if ( (OrderSymbol()==Symbol()) && (OrderMagicNumber()==MagicNumber) && (OrderComment()==GetCommentForOrder()) ) // hdb - only symbol and magic // modified by Renato

{

orderclosetime=OrderCloseTime();

rightnow=Year()+"-"+Month()+"-"+Day()+" "+Hour()+":"+Minute()+":"+Seconds();

rightnow2=StrToTime(rightnow);

difference=rightnow2-orderclosetime;

if(20160*60>difference)

{ // At leas0t 2 periods away!

flag=1; // Throw a flag

break;

}

}

}

}

return(flag);

}

I dont want it to trade until 20160 Minutes after a loss, but its still not working... can somebody help me?

 

Has anyone tried modifying firebird ea to use Stochastic RSI as entry in addition to or replacing current entry method?

 
matrixebiz:
I wouldn't use that one. It's dangerous. All of a sudden it will decide to make huge lot trades. I always trade 0.01 lots then it did this 21, 50 lot size trades. Weird

I think this might be the cause of the sudden lot size.... Please see the commented out code below....

// ====== Money Management for Lot Size routine ======

if(UseMM)

{

Lots=AccountEquity()* Risk/100/1000;

if( Lots>=0.1)

{

Lots=NormalizeDouble(Lots,1);

}

else

Lots=NormalizeDouble(Lots,2);

}

// Commented out by Steven

// This maybe the cause of invalid Lot Size....

//if(MyOrdersTotal()>0)

// {

// Lots=Lots * MyOrdersTotal();

// }

Reason: