Simple Coding Help - No Promise.

john302928

Well-Known Member
No. If you see the afl in the link i posted, it plots swing high and low values on chart. what i want is to create an exploration and when i scan for that exploration it should display the latest swing high and latest swing low value for each stock. I want the latest swing high and low of hindalcoas 183.6 and 180.4 and similarly for all the stocks when i do the exploration. hope you are getting my point
1564721510509.png

@Happy_Singh .please help. thanks
 
Last edited:
hello siddhant sir i need candlestick exploration on hourly time frame...nd i want only few candles like piercing,morning and evening star etc...i found on internet bt that is nt working on hourly tf....pls help
 

RadhuK

Well-Known Member
Hi guys.... Help me
I need Hi and Lo values of 1 PM , 15 min timeframe
I used following code..... on 5 min tf
But when i run it, its giving error..array subscript out of range..

eBar = Param("1PM",23,23,35,1);
TimeFrameSet(in15Minute );
X = LastValue(ValueWhen(Day() != Ref(Day(), -1), BarIndex()+eBar, 1));
eHi = H[X];
eLo = L[X];
TimeFrameRestore();
eHi = TimeFrameExpand( eHi,in15Minute ); //
eLo = TimeFrameExpand( eLo,in15Minute ); //

Please help me, with proper code...
 
Hi guys.... Help me
I need Hi and Lo values of 1 PM , 15 min timeframe
I used following code..... on 5 min tf
But when i run it, its giving error..array subscript out of range..

eBar = Param("1PM",23,23,35,1);
TimeFrameSet(in15Minute );
X = LastValue(ValueWhen(Day() != Ref(Day(), -1), BarIndex()+eBar, 1));
eHi = H[X];
eLo = L[X];
TimeFrameRestore();
eHi = TimeFrameExpand( eHi,in15Minute ); //
eLo = TimeFrameExpand( eLo,in15Minute ); //

Please help me, with proper code...
Hope this helps. Thnx.
Code:
_SECTION_BEGIN("High Low of Start End Time");
tn = TimeNum();
StartTime = Paramtime("Define Start Time","12:44:59",0);
EndTime = Paramtime("Define End Time","12:59:59",0);
StartBar = tn == StartTime;
EndBar = tn == Endtime;
Barhigh = ValueWhen(EndBar, Highestsince(StartBar, High));
Barlow = ValueWhen(EndBar, Lowestsince(StartBar, Low));

GfxSetBkMode( 1 );
GfxSelectFont("Courier New", 8, 700 );
GfxSetTextColor( colorGold );
GfxTextOut(" H-"+Barhigh +" & L-"+BarLow, 5,10);
GfxTextOut("/ Between Time -"+StartTime+" & "+EndTime,140,10);
_SECTION_END();
 

RadhuK

Well-Known Member
Hope this helps. Thnx.
Code:
_SECTION_BEGIN("High Low of Start End Time");
tn = TimeNum();
StartTime = Paramtime("Define Start Time","12:44:59",0);
EndTime = Paramtime("Define End Time","12:59:59",0);
StartBar = tn == StartTime;
EndBar = tn == Endtime;
Barhigh = ValueWhen(EndBar, Highestsince(StartBar, High));
Barlow = ValueWhen(EndBar, Lowestsince(StartBar, Low));

GfxSetBkMode( 1 );
GfxSelectFont("Courier New", 8, 700 );
GfxSetTextColor( colorGold );
GfxTextOut(" H-"+Barhigh +" & L-"+BarLow, 5,10);
GfxTextOut("/ Between Time -"+StartTime+" & "+EndTime,140,10);
_SECTION_END();
will check it out, thanks
 
hi..
how to place order from ami in nest..
I am trying but getting error:
"PlaceOrder" i
getting :
object name is not set "setobjectname is not called"
does it requires nest plus to be activated..
 
Last edited:
Please need Ribbon for this crossover.

_SECTION_BEGIN("SAR");

Period = Param("Length",5,5,100,1);

// JNSAR = (5 days HEma+5Days CEma+5Days LEma)/15

isum = (Sum(EMA(High,Period),Period) + Sum(EMA(Low,Period),period) + Sum(EMA(Close,Period),period));

jnsar = round(isum/15);

Buy = Cross(Close, jnsar);
Sell =Cross(jnsar,Close);

Short = Sell;
Cover = Buy;

color = IIf(C>jnsar,colorWhite,colorBlack);

P = ParamField("Price field",-1);
Periods1 = Param("Periods1", 5, 2, 300, 1, 10 );
PlotOHLC( Null,EMA( P, Periods1 ),(JNSAR),Null, "", IIf(EMA( P, Periods1 )>(JNSAR) ,colorDarkTeal,colorTan), styleCloud);
 

josh1

Well-Known Member
The attached code inserts selected Text Symbols on to chart. It is an alternate to the "abc" Text tool of Amibroker. As you can see in below chart. double-Click on the color circle to pick color- then click symbol in aqua color rectangle on left. Then click on chart to paste the symbol. It can also delete the symbols by middle button or click on D in 29th cell.
The code contained too many symbols in 9 rows. I changed code to to reduce them to 3 rows.
1. However, I am not able to reduce the height of the rectangle to 3 rows. Can anybody help?
2. The code was made for version 5.8 which used 'PlotTextsetfont' function. I had to change it to 'plottext' for lower version(5.5). Can we use GFXdrawtext or gfxtext out to paste symbol of desired font size?

image.png
 

Attachments

Romeo1998

Well-Known Member
Sir just change the 42nd line in code
this
Code:
GfxGradientRect( 21,41,220, 220  , colorAqua, colorAqua ); // the Chassis Box
to this
Code:
GfxGradientRect( 21,41,220, Param("lower height",100,1,1000,1)  , colorAqua, colorAqua ); // the Chassis Box
:)
 

Similar threads