Code snippets - page 7

 
12BPRO:
Dear SIR MLADEN,

I don't know what is wrong with this count thing... it simply not working

This is a picture of the arrow signal

And this is the edited code to cancel the same arrow signal,

I have check the iCustom CALL and it has a value... 2nd line

But the count buffer has NO value (0) Zero....

yours truly

AZRUL...

PS- got to get some sleep.... my head is boiling....

Thank you SIR for the time and attention you have given.... hope some day could return the favor....

Sorry, I simply can not guess what is wrong with the code ig I see just short parts of the code

 
mladen:
Sorry, I simply can not guess what is wrong with the code ig I see just short parts of the code

Dear SIR MLADEN,

Very SORRY, I went to bed - got a headache

Attach is the Calling Indicator.... for your reference...

ps: I have check your FB, nice to see you....SIR

yours truly

AZRUL...

Files:
 
12BPRO:
Dear SIR MLADEN,

Very SORRY, I went to bed - got a headache

Attach is the Calling Indicator.... for your reference...

ps: I have check your FB, nice to see you....SIR

yours truly

AZRUL...

AZRUL

Change init() from this :

int init()

{

//---- indicators

SetIndexBuffer(0,BufBuy);

SetIndexLabel(0,"Buy");

SetIndexStyle(0,DRAW_ARROW,STYLE_SOLID);

SetIndexArrow(0,233);

SetIndexBuffer(1,BufSell);

SetIndexLabel(1,"Sell");

SetIndexStyle(1,DRAW_ARROW,STYLE_SOLID);

SetIndexArrow(1,234);

//----

return(0);

}[/PHP]

to this

[PHP]int init()

{

//---- indicators

IndicatorBuffers(3);

SetIndexBuffer(0,BufBuy);

SetIndexLabel(0,"Buy");

SetIndexStyle(0,DRAW_ARROW,STYLE_SOLID);

SetIndexArrow(0,233);

SetIndexBuffer(1,BufSell);

SetIndexLabel(1,"Sell");

SetIndexStyle(1,DRAW_ARROW,STYLE_SOLID);

SetIndexArrow(1,234);

SetIndexBuffer(2,count);

//----

return(0);

}
 
mladen:
AZRUL

Change init() from this :

int init()

{

//---- indicators

SetIndexBuffer(0,BufBuy);

SetIndexLabel(0,"Buy");

SetIndexStyle(0,DRAW_ARROW,STYLE_SOLID);

SetIndexArrow(0,233);

SetIndexBuffer(1,BufSell);

SetIndexLabel(1,"Sell");

SetIndexStyle(1,DRAW_ARROW,STYLE_SOLID);

SetIndexArrow(1,234);

//----

return(0);

}[/PHP]

to this

[PHP]int init()

{

//---- indicators

IndicatorBuffers(3);

SetIndexBuffer(0,BufBuy);

SetIndexLabel(0,"Buy");

SetIndexStyle(0,DRAW_ARROW,STYLE_SOLID);

SetIndexArrow(0,233);

SetIndexBuffer(1,BufSell);

SetIndexLabel(1,"Sell");

SetIndexStyle(1,DRAW_ARROW,STYLE_SOLID);

SetIndexArrow(1,234);

SetIndexBuffer(2,count);

//----

return(0);

}

Dear SIR MLADEN,

You NAIL it again... and again... and again.... 10th credits my GURU....

SORRY to have wasted your time yesterdayfor not seeing that as a actual buffer not an Array.....

yours truly

AZRUL...

Files:
arrow.jpg  49 kb
 

Dear Codes GURU,

Could someone PLEASE make a code to STOP my EA from entering anymore ORDER (BUY/SELL) when my account balance is less than XXXUSD amount.....

extern double AccBalance = 200.00;

int start()

if (AccountEquity() <= AccBalance) return(0);

//------------------

Is this correct SIR.....

yours truly

AZRUL...

 
12BPRO:
Dear Codes GURU,

Could someone PLEASE make a code to STOP my EA from entering anymore ORDER (BUY/SELL) when my account balance is less than XXXUSD amount.....

extern double AccBalance = 200.00;

int start()

if (AccountEquity() <= AccBalance) return(0);

//------------------

Is this correct SIR.....

yours truly

AZRUL...

No

Add that code to the code part right before you decide to open a new order (otherwise the rest of the orders processing will be skipped too)

 
mladen:
No Add that code to the code part right before you decide to open a new order (otherwise the rest of the orders processing will be skipped too)

Dear SIR MLADEN,

Yes SIR, did not think that... otherwise any previous open order would not closed....

Thanks for the TIP and time, you always enlighten me...

yours truly

AZRUL...

 
12BPRO:
Dear SIR MLADEN,

Yes SIR, did not think that... otherwise any previous open order would not closed....

Thanks for the TIP and time, you always enlighten me...

yours truly

AZRUL...

Just be patuient

 
mladen:
Just be patuient

Dear SIR MLADEN,

Coming from you SIR, I know what TRUE patient mean... with all the problem solving and time spend ......

yours truly

AZRUL...

 

Dear Codes GURU,

How do I make a code to recognize the direction UP or DOWNof this staircase line indicator (MTF)...

I have got the following issues ( problem )

1) White line is almost horizontal (flat)

2) The increase/decrease of most of other line is like a stair case...( a few bars a head)..

Could a code be made like a count, every time an increase/decrease it will plus/minus and turn to zero when change direction...

But I don't have enough Buffer to make the count... it is used up for drawing the line...

Or I could just save it in another file and replace the Buffer use to draw this line with the count....

Your time and suggestion is always appreciated....

yours truly

AZRUL...

Files:
mtf.jpg  47 kb