Simple Coding Help - No Promise.

get the bar number (using barindex) when condition A “True” ……. then store the “High” of that bar ……now check after condition B “true” when it cross/close above store value ........
I am aware abt very basic coding, Barindex and Barsince and not very well versed.
Condition A is . Buy = Close > Ema(C,50) and Condition B

Can u help me how to code this?
 

HappyLife

Well-Known Member
I am aware abt very basic coding, Barindex and Barsince and not very well versed.
Condition A is . Buy = Close > Ema(C,50) and Condition B

Can u help me how to code this?
for this…. barindex and barsince not needed …….. anyway to know more about all this stuff you should read amibroker help or google it …. to see how other coder using it….
 
for this…. barindex and barsince not needed …….. anyway to know more about all this stuff you should read amibroker help or google it …. to see how other coder using it….
A bit of misstyped, I only know basic coding and not aware abt barindex or barsince.
Also if barsince is not required, can u help me out with the code.
I had googled but not getting the proper codes neither i am able to understand from amibroker help.

request you if u can help or any one from the community can help ?
 

trash

Well-Known Member
Unicode working
View attachment 21517

but here its not working with 267D getting rectangle shape …. why???
View attachment 21518

First of all it is u267D not 267D
Secondly your OS needs to have the glyph in the font!

In W7 it works just fine!


Code:
Plot( C, "", colorDefault );

PlotTextSetFont( "\u267D", "Segoe UI", size = 30, x = 50, y= LastVisibleValue( C ), colorRed );
 

HappyLife

Well-Known Member
First of all it is u267D not 267D
Secondly your OS needs to have the glyph in the font!

In W7 it works just fine!


Code:
Plot( C, "", colorDefault );

PlotTextSetFont( "\u267D", "Segoe UI", size = 30, x = 50, y= LastVisibleValue( C ), colorRed );
Thanks:)
First one I know …… for experiment purpose ....... using it this way…….
Code:
PlotText( "\u260E",  “\u261C” , “\u2600” => perfect symbol (post img above)
PlotText( "\u267D",   => getting rectangle shape on this one
may be Glyph font problem ......
 
Last edited:

trash

Well-Known Member
There is no problem. You are doing wrong steps. So it is user error.
Use PlotTextSetFont and stop doing things I haven't posted.
That glyph is supported by specific fonts only!
So if you use Arial font with it then it will not output as PARTIALLY-RECYCLED PAPER SYMBOL but as rectangle.
 

Similar threads