help fineturn EA - page 7

 

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

Which time-frame, H1, H4...?

 
BarrowBoy:

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

Which time-frame, H1, H4...?

M15,H1

as this ema does not do well on both of them

 
delcor:

M15,H1

as this ema does not do well on both of them

what error is a "ordersend error 130

 

See Error Codes
Usual causes are:-

Getting Bid & Ask wrong way round

StopLoss & TakeProfit values wrong way round

StopLoss or TakeProfit values wrongly formatted (too many/too few decimals)

Putting an indicator value as StopLoss or TakeProfit

...

Not that any of these have ever happened to me of course :)

A friend said he'd had all these problems when he was learning years ago ;)

Good Luck

Keep Trying

-BB-

 
BarrowBoy:

See Error Codes
Usual causes are:-

Getting Bid & Ask wrong way round

StopLoss & TakeProfit values wrong way round

StopLoss or TakeProfit values wrongly formatted (too many/too few decimals)

Putting an indicator value as StopLoss or TakeProfit

...

Not that any of these have ever happened to me of course :)

A friend said he'd had all these problems when he was learning years ago ;)

Good Luck

Keep Trying

-BB-

thank you will check them now

have you program any scelper?

 
delcor:

thank you will check them now

have you program any scelper?

this is the file it will do all other currencies but the eurjpy and usdjpy it will on work

i have change all the settings but does not want ot buy or sell.

 
delcor:

this is the file it will do all other currencies but the eurjpy and usdjpy it will on work

i have change all the settings but does not want ot buy or sell.

BarrowBoy

i am try to place a buy and sell on a trigger line

but battle to see the argument. help me if i am incorrect

normally your buy and sell will be in the loop

if------ then buy or sell

but i can not c that in this argument

int start()

{ Draw4HowLong = Bars-Rperiod - 5; //Rperiod = 20
length = Rperiod; //length now = 20
lsma_length = LSMA_Period;
loopbegin = Draw4HowLong - length - 1;


for(shift = loopbegin; shift >= 0; shift--) // MAIN For Loop
{
sum[1] = 0;
for(i = length; i >= 1 ; i--) //LSMA loop
{
lengthvar = length + 1; //lengthvar = 21
lengthvar /= 3; //lengthvar = 7
tmp = 0;
tmp = ( i - lengthvar)*Close[length-i+shift]; //tmp = 20 - 7 * close[20-i+shift]
sum[1]+=tmp;
}
wt[shift] = sum[1]*6/(length*(length+1));
j = shift;
lsma_ma[shift] = wt[j+1] + (wt[j]-wt[j+1])* 2/(lsma_length+1);


//========== COLOR CODING ===========================================


ExtMapBuffer1[shift] = wt[shift];
ExtMapBuffer2[shift] = lsma_ma[shift];
ExtMapBuffer3[shift] = wt[shift];
ExtMapBuffer4[shift] = lsma_ma[shift];



if (wt[shift] < lsma_ma[shift]) -------------- i thought it was this
{
ExtMapBuffer4[shift] = EMPTY_VALUE;
ExtMapBuffer3[shift] = EMPTY_VALUE;
}

Reason: