indiTraders - Forum for the Active Indian Trader  

Go Back   indiTraders - Forum for the Active Indian Trader > Tools > Software > Amibroker

Reply
 
Bookmark and Share LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-01-2017, 04:10 PM
fxtraders fxtraders is offline
Regular
 
Join Date: Apr 2016
Posts: 33
Thanks: 35
Thanked 14 Times in 11 Posts
fxtraders is on a distinguished road
Default Daily candlestick chart overlaid on the Weekly price chart (Opposite of normaloverlay

Lower to Higher timeframe has its own importance ..
btw
---------

weekly candlestick chart overlaid on 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 ( As usual)

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

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 will not work..
======
Also,

timeframeexpand work for higher to lower tf..
There's no timeframe function for lower to higher timeframe ..
.....
__________________
Don't Let Your Ignorance Stop You

Last edited by fxtraders; 01-01-2017 at 04:21 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 3 Users Say Thank You to fxtraders For This Useful Post:
Reply

indiTraders - Forum for the Active Indian Trader > Tools > Software > Amibroker


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT +5.5. The time now is 03:25 AM.


vBulletin Copyright by vBulletin

Content Relevant URLs by vBSEO 3.3.2