NexusFi: Find Your Edge


Home Menu

 





Amibroker Questions


Discussion in Platforms and Indicators

Updated
    1. trending_up 1,430 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread

Amibroker Questions

  #1 (permalink)
fxtraders
connaught, DL
 
Posts: 11 since Sep 2016
Thanks Given: 1
Thanks Received: 0

Some questions don't deserve separate thread hence the title ..

Higher timframe overlay to lower timeframe is quite common..
I haven't seen Lower timeframe to higher timeframe in amibroker.. so the question .



Daily candlestick chart overlaid on the Weekly price chart ( Opposite of Normal Higher to lower timeframe overlaid) doesn't work.


weekly candlestick chart overlaid on line daily price chart


1. Open your Daily Chart .

2. Use Code:
 
Code
wo = TimeFrameGetPrice( "O", inWeekly, 0, expandPoint ); 
wh = TimeFrameGetPrice( "H", inWeekly, 0, expandPoint ); 
wl = TimeFrameGetPrice( "L", inWeekly, 0, expandPoint ); 
wc = TimeFrameGetPrice( "C", inWeekly, 0, expandPoint ); 

PlotOHLC( wo, wh, wl, wc, "Weekly Close", colorWhite, styleCandle ); 
Plot( Close, "Daily Close", colorBlue );
It overlay Weekly chart on Daily

=======================================

QUESTION:

If you want to overlay Daily Timeframe Chart on Weekly Chart .. (Lower timeframe on higher timeframe )

What Code will you use it ??

1. Open Weekly timeframe

2. Use
 
Code
_SECTION_BEGIN("Formula");
ddo = TimeFrameGetPrice( "O", inDaily, 0, expandPoint ); 
dh = TimeFrameGetPrice( "H", inDaily, 0, expandPoint ); 
dl = TimeFrameGetPrice( "L", inDaily, 0, expandPoint ); 
dc = TimeFrameGetPrice( "C", inDaily, 0, expandPoint ); 

PlotOHLC( ddo, dh, dl, dc, "Daily Close", colorWhite, styleCandle ); 
Plot( Close, "Daily Close", colorBlue ); 
_SECTION_END();
It won't work.

If you would like to answer after understanding question, Keep post code.


Thx
( If anything need to get changed as per rules .. I will change it , kindly let me know)

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Are there any eval firms that allow you to sink to your …
Traders Hideout
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Exit Strategy
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
59 thanks
Funded Trader platforms
38 thanks
NexusFi site changelog and issues/problem reporting
25 thanks
GFIs1 1 DAX trade per day journal
19 thanks
The Program
18 thanks
  #2 (permalink)
fxtraders
connaught, DL
 
Posts: 11 since Sep 2016
Thanks Given: 1
Thanks Received: 0

It maybe possible either It doesn't print range(i.e. 1,2,3 under candle as per condition) by user defined function or .. maybe i'm missing something in this .

 
Code
SetBarsRequired( -2, -2 );
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
 

function tf_ma(e,d)
{
global i;
for (i=e; i<d; i++)
{
  tf = i * in1Minute;
  TimeframeSet(tf);
    meme =MA(C, 15);
   TimeframeRestore();
}
 m = TimeFrameExpand(meme,tf,expandPoint);
 for( b = 0; b < BarCount; b++ ) {
      //PlotText(" " , b, L[ b ], colorRed, colorDefault, -12 );
      if(m[b])  PlotText(" "+(i), b, L[b]-1-(i), colorCustom1);
   }
 return;
}
 tf_ma(1,3);

It isn't printing any range while using User Defined Function .

It does print range without function .

I've seen afl that use user defined function , but not range of something..



Weird?

Reply With Quote




Last Updated on January 1, 2017


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts