help fineturn EA - page 6

 
BarrowBoy:

Good effort :)

There is many not so good in the CodeBase!!

Added TP & SL for sanity & better equity curve

Added Order Comment

Corrected lot handling to enable micro accounts to use it

Corrected LotsOptimized() to include check for Magic Number

Added auto-adjust for sub-pip accounts

Nailed this version to GBPUSD H1 that seems to have the most potential

FWIW my 2c worth :)

Good Luck

-BB-

thanks that looks good

can you tell me if i change the string to be use on the GBPJPY it should work on the gbpjpy

if(StringFind(strSymbol, "GBPJPY", 0)<0)
 

BW

> can you tell me if i change the string to be use on the GBPJPY it should work on the gbpjpy

Alter that plus the MAGICMA value, strComment and the full/sub-pip section

like...

  // Handle full/sub-pip 
   if (Digits == 2) // Yen cross full pip
     {
       Real.Slippage = Slippage;
       Real.TakeProfit = TakeProfit;
       Real.StopLoss = StopLoss;
       Real.TrailingStop = TrailingStop;
       Real.TS.Min.Move.Pips = TS.Min.Move.Pips;
     }
  
   if (Digits == 3) // Yen cross sub-pip 
     {
       Real.Slippage = Slippage*10;
       Real.TakeProfit = TakeProfit*10;
       Real.StopLoss = StopLoss*10;
       Real.TrailingStop = TrailingStop*10;
       Real.TS.Min.Move.Pips = TS.Min.Move.Pips*10;
     }

Once you have done that, experiment to find the externs that (may) work

I suspect you may want the next version with Trailing Stops...?

 

Next Version

Files:
 
ronaldosim wrote >>

here is the indicator u need

Thanks! It work well, but it does not include the swap in the Weekly Account Balance. For example, if my Account Profit is $260.00 ad I have Swap $1.50, the displayed amount is only $260.00. How can I get the Swap amount included in the total so it is accurate?

 
7455 wrote >>

Thanks! It work well, but it does not include the swap in the Weekly Account Balance. For example, if my Account Profit is $260.00 ad I have Swap $1.50, the displayed amount is only $260.00. How can I get the Swap amount included in the total so it is accurate?

ok, here is a version that takes swap values into the computation;

btw, u might want to start yr own query thread next time so as not to confuse with the original thread starter's intention

 
BarrowBoy:

Next Version


thanks a lot for helping me

i can see you an experience programmer

i am still learning

i need more help if i stuck will you help me

 

> i need more help if i stuck will you help me

Yes, keep posting :)

The Weekly Swap item should spin off to another thread, should relate to a position or swing trading EA, whereas this looks more like an intraday

Good Luck

-BB-

 
BarrowBoy:

> i need more help if i stuck will you help me

Yes, keep posting :)

The Weekly Swap item should spin off to another thread, should relate to a position or swing trading EA, whereas this looks more like an intraday

Good Luck

-BB-

i have placed it on a demo account and it is trading now for +-3 days in profit

how long is a swing trade

 

swing trade

Definition
A trading strategy that seeks to create profits by holding positions for relatively short periods, often one day to one week.
 
BarrowBoy:

swing trade

Definition
A trading strategy that seeks to create profits by holding positions for relatively short periods, often one day to one week.

what i am working out is to have a short period of time on eur/usd