NexusFi: Find Your Edge


Home Menu

 





Pl. correct Amibroker code which distorts chart view.


Discussion in Platforms and Indicators

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




 
Search this Thread

Pl. correct Amibroker code which distorts chart view.

  #1 (permalink)
bharatk8
ahmedabad,gujarat,india
 
Posts: 2 since Nov 2010
Thanks Given: 0
Thanks Received: 0

Hi
My code has Monthly,Weekly,Daily MTF lines.These MTF lines compress chart view.I have tried various scale options to correct this but theses attempts have failed to deliver desired results.Pl. suggest ways to plot only those MTF lines which are close to(40 pips below/above) current bar only.
_SECTION_BEGIN( "Monthly BB" );

TFm = inMonthly ;

TimeFrameSet( TFm );

ShowBBm9F = ParamToggle( "BB9 MTFm F", "Hide|Show", 1 );
ShowBBm9L = ParamToggle( "BB9 MTFm L", "Hide|Show", 1 );
PMTFm9 = Param( "Periom9 MTFm", 9, 2, 30, 1 );
WMTFm9 = Param( "Width9 MTFm", 1.5, 0, 10, 0.05 );
ShowBBm20F = ParamToggle( "BB20 MTFm F", "Hide|Show", 1 );
ShowBBm20L = ParamToggle( "BB20 MTFm L", "Hide|Show", 1 );
PMTFm20 = Param( "Periom20 MTFm", 20, 2, 30, 1 );
WMTFm20 = Param( "Width20 MTFm", 2, 0, 10, 0.05 );
Mm9 = WMA( C, PMTFm9 );
sdm9 = StDev( C, PMTFm9 );
Topm9 = Mm9 + WMTFm9 * sdm9;
Botm9 = Mm9 - WMTFm9 * sdm9;
Mm20 = WMA( C, PMTFm20 );
sdm20 = StDev( C, PMTFm20 );
Topm20 = Mm20 + WMTFm20 * sdm20;
Botm20 = Mm20 - WMTFm20 * sdm20;

TimeFrameRestore();

Mm9Fm = TimeFrameExpand( Mm9, TFm, expandFirst );
TP9Fm = TimeFrameExpand( TOPm9, TFm, expandFirst );
BT9Fm = TimeFrameExpand( BOTm9, TFm, expandFirst );
Mm20Fm = TimeFrameExpand( Mm20, TFm, expandFirst );
TP20Fm = TimeFrameExpand( TOPm20, TFm, expandFirst );
BT20Fm = TimeFrameExpand( BOTm20, TFm, expandFirst );
Mm9lm = TimeFrameExpand( Mm9, TFm, expandLast );
TP9lm = TimeFrameExpand( TOPm9, TFm, expandLast );
BT9lm = TimeFrameExpand( BOTm9, TFm, expandLast );
Mm20lm = TimeFrameExpand( Mm20, TFm, expandLast );
TP20lm = TimeFrameExpand( TOPm20, TFm, expandLast );
BT20lm = TimeFrameExpand( BOTm20, TFm, expandLast );
if ( ShowBBm9F )
//Plot( Mm9Fm, "MID BANm9 monthly First", colorOrange, styleLine| styleDashed | styleNoRescale );//styleDots |
if ( ShowBBm9F )
//Plot( TP9Fm, "TOP BANm9 monthly First", colorDarkRed, styleLine| styleDashed | styleNoRescale );//styleDots|
if ( ShowBBm9F )
//Plot( BT9Fm, "BOT BANm9 monthly First", colorDarkOliveGreen, styleLine | styleDashed| styleNoRescale );//styleDots|styleDashed |
if ( ShowBBm9L )
//Plot( Mm9lm, "MID BANm9 monthly Last", colorOrange, styleLine | styleDots | styleThick | styleNoRescale );
if ( ShowBBm9L )
//Plot( TP9lm, "TOP BANm9 monthly Last", colorOrange, styleLine | styleDots | styleThick | styleNoRescale );
if ( ShowBBm9L )
//Plot( BT9lm, "BOT BANm9 monthly Last", colorOrange, styleLine | styleDots | styleThick | styleNoRescale );
if ( ShowBBm20F )
//Plot( Mm20Fm, "MID BANm20 monthly First", colorBrown, styleLine | styleNoRescale );//styleDots |
if ( ShowBBm20F )
//Plot( TP20Fm, "TOP BANm20 monthly First", colorBrown, styleLine | styleNoRescale );
if ( ShowBBm20F )
//Plot( BT20Fm, "BOT BANm20 monthly First", colorBrown, styleLine | styleNoRescale );//styleDots |
if ( ShowBBm20L )
//Plot( Mm20lm, "MID BANm20 monthly Last", colorBrown, styleLine | styleDots | styleThick | styleNoRescale );
if ( ShowBBm20L )
//Plot( TP20lm, "TOP BANm20 monthly Last", colorBrown, styleLine | styleDots | styleThick | styleNoRescale );
if ( ShowBBm20L )
//Plot( BT20lm, "BOT BANm20 monthly Last", colorBrown, styleLine | styleDots | styleThick | styleNoRescale );

Reply With Quote




Last Updated on May 11, 2016


© 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