help fineturn EA - page 7 1234567 New comment [Deleted] 2009.03.16 15:09 #61 > what i am working out is to have a short period of time on eur/usd Which time-frame, H1, H4...? Rudolph Brits 2009.03.16 15:26 #62 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 Rudolph Brits 2009.03.16 15:28 #63 delcor: M15,H1 as this ema does not do well on both of them what error is a "ordersend error 130 [Deleted] 2009.03.16 18:16 #64 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- Everything about RSI Discussion of article "Step-by-Step Error Codes Rudolph Brits 2009.03.16 21:41 #65 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? Rudolph Brits 2009.03.16 21:54 #66 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. Files: jbtest3x501peurjpyoh1.mq4 9 kb Rudolph Brits 2009.03.17 11:19 #67 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; } Metastock to MT4 How to interpret custom CPU/MEM issues using one 1234567 New comment
> what i am working out is to have a short period of time on eur/usd
Which time-frame, H1, H4...?
> 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
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-
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?
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.
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;
}