NexusFi: Find Your Edge


Home Menu

 





Right Side Margin Cutoff


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one cory with 2 posts (5 thanks)
    2. looks_two TradingOgre with 2 posts (0 thanks)
    3. looks_3 Fat Tails with 2 posts (7 thanks)
    4. looks_4 Ratdog with 2 posts (0 thanks)
    1. trending_up 2,119 views
    2. thumb_up 12 thanks given
    3. group 3 followers
    1. forum 8 posts
    2. attach_file 6 attachments




 
Search this Thread

Right Side Margin Cutoff

  #1 (permalink)
 Ratdog 
Lansing Michigan
 
Experience: Beginner
Platform: Nt8
Trading: Es
Posts: 26 since May 2018
Thanks Given: 39
Thanks Received: 25

Hello everyone,
I understand the EMAs are 'working as intended' and so is the 'right side margin'; however my goal here is to get the EMAs to work like the IchimokuSignalB02 indicator. I would like them to not be cut off from display by the right side margin.

In picture 1, you can see that the IchimokuCloud is not affected by the right side margin. The display of it is not cut off.
However, if you look at the EMAs, they are cut off straight down the right side margin. The right side margin is highlighted on the Y axis in pink.

Now, if I drag the chart to the left, you will notice that the EMAs are actually displaced to the right. You will notice that the right side margin, where the pink bar is, actually cuts off the visual effect of anything to the right of it.

How do we get indicators to display to the right of the margin like the Ichimoku cloud has?

I've attached the indicator of the ichimoku cloud and the two pictures.

Attached Thumbnails
Click image for larger version

Name:	Picture 1 Right Side Margin.png
Views:	248
Size:	157.1 KB
ID:	252354   Click image for larger version

Name:	Picture 2 Right Side Margin.png
Views:	222
Size:	144.3 KB
ID:	252357  
Attached Files
Elite Membership required to download: NT8_IchimokuSignal_B02.zip
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
REcommedations for programming help
Sierra Chart
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Cheap historycal L1 data for stocks
Stocks and ETFs
How to apply profiles
Traders Hideout
MC PL editor upgrade
MultiCharts
 
  #2 (permalink)
 
TradingOgre's Avatar
 TradingOgre 
Evans GA/USA
Legendary Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: NinjaTrader Brokerage - Philip Capital
Trading: NQ,ES,6E,CL
Posts: 556 since Jul 2018
Thanks Given: 908
Thanks Received: 1,672


Ratdog View Post
Hello everyone,
I understand the EMAs are 'working as intended' and so is the 'right side margin'; however my goal here is to get the EMAs to work like the IchimokuSignalB02 indicator. I would like them to not be cut off from display by the right side margin.

In picture 1, you can see that the IchimokuCloud is not affected by the right side margin. The display of it is not cut off.
However, if you look at the EMAs, they are cut off straight down the right side margin. The right side margin is highlighted on the Y axis in pink.

Now, if I drag the chart to the left, you will notice that the EMAs are actually displaced to the right. You will notice that the right side margin, where the pink bar is, actually cuts off the visual effect of anything to the right of it.

How do we get indicators to display to the right of the margin like the Ichimoku cloud has?

I've attached the indicator of the ichimoku cloud and the two pictures.

You can manually set it by right clicking on the chart, click properties then set the right side margin (in pixels I believe).

Not sure how to do it in the code but I will try to find out.

Visit my NexusFi Trade Journal Reply With Quote
  #3 (permalink)
 
TradingOgre's Avatar
 TradingOgre 
Evans GA/USA
Legendary Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: NinjaTrader Brokerage - Philip Capital
Trading: NQ,ES,6E,CL
Posts: 556 since Jul 2018
Thanks Given: 908
Thanks Received: 1,672


From the ninjatrader forum:




It appears it cannot be set from the script.

Visit my NexusFi Trade Journal Reply With Quote
  #4 (permalink)
 
bobwest's Avatar
 bobwest 
Western Florida
Site Moderator
 
Experience: Advanced
Platform: Sierra Chart
Trading: ES, YM
Frequency: Several times daily
Duration: Minutes
Posts: 8,172 since Jan 2013
Thanks Given: 57,514
Thanks Received: 26,292


Ratdog View Post
Hello everyone,
I understand the EMAs are 'working as intended' and so is the 'right side margin'; however my goal here is to get the EMAs to work like the IchimokuSignalB02 indicator. I would like them to not be cut off from display by the right side margin.

In picture 1, you can see that the IchimokuCloud is not affected by the right side margin. The display of it is not cut off.
However, if you look at the EMAs, they are cut off straight down the right side margin. The right side margin is highlighted on the Y axis in pink.

Now, if I drag the chart to the left, you will notice that the EMAs are actually displaced to the right. You will notice that the right side margin, where the pink bar is, actually cuts off the visual effect of anything to the right of it.

How do we get indicators to display to the right of the margin like the Ichimoku cloud has?

I've attached the indicator of the ichimoku cloud and the two pictures.


TradingOgre View Post
You can manually set it by right clicking on the chart, click properties then set the right side margin (in pixels I believe).

Not sure how to do it in the code but I will try to find out.

I believe the question is how to make the EMA's print to the right of what is normally the right margin of the chart -- in other words, to print in the area to the right of the price bars, which would be in the future in terms of the current price. This is not the same as setting the right margin. If you set the right margin, the EMA's will still print to the left of it.

Ichimoku is meant to be displayed out to the right, in the chart's future, because it is thought to be predictive. Getting it out there has been an issue with NT for some time, as NT does not natively allow posting to the right of the chart margin. It has been solved by some clever coding that does custom plotting that does not use the native NT plotting. Ichimoku is not a native NT indicator; I don't know who did the one that is referenced here, but I have seen it done by @Fat Tails.

To do the same for EMA's or any other indicator would also involve custom programming and would not necessarily be trivial to do. You could make a request in the free indicator thread for someone to code it for you:

Generally, to capture someone's interest for an unusual job, you would have to explain why it would be useful. In other words, explaining what would be the purpose of projecting EMA lines out into the future region of the chart.

Good luck, this is not a simple request.

Bob.

Reply With Quote
  #5 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103


TradingOgre View Post
From the ninjatrader forum:




It appears it cannot be set from the script.


It is possible to set the right side margin via NinjaScript. This requires coding a custom OnRender() section.

However, there is a catch. When the right side margin is set via OnRender() there may be a conflict between two indicators. Imagine that one of those indicators sets the right side margin to 100 while the other one sets it to 300 pixels. The result will be a chart that jumps from the left to the right and back again with a frequency set by the display interval used by OnRender(). This is funny, but not really useful.

Therefore when using NinjaScript you should only set the right side margin in a way that it is increased from the current value to a larger value. In that case when two indicators are competing for setting the right side margin, you will obtain the larger of the two values set by the two indicators. This will avoid a chart that jumps all the time.

Also there should be an option to deactivate the setting of the right side margin via the indicator dialogue box (deactivate this by default to avoid confusion).

The rightside margin can be set via ChartControl.Properties.BarMarginRight.

Reply With Quote
Thanked by:
  #6 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103


Ratdog View Post
Hello everyone,
I understand the EMAs are 'working as intended' and so is the 'right side margin'; however my goal here is to get the EMAs to work like the IchimokuSignalB02 indicator. I would like them to not be cut off from display by the right side margin.

In picture 1, you can see that the IchimokuCloud is not affected by the right side margin. The display of it is not cut off.
However, if you look at the EMAs, they are cut off straight down the right side margin. The right side margin is highlighted on the Y axis in pink.

Now, if I drag the chart to the left, you will notice that the EMAs are actually displaced to the right. You will notice that the right side margin, where the pink bar is, actually cuts off the visual effect of anything to the right of it.

How do we get indicators to display to the right of the margin like the Ichimoku cloud has?

I've attached the indicator of the ichimoku cloud and the two pictures.


This is possible, if you code a custom plot.

You may for example have a look at the amaMultiMACross (see download section). When you displace this indicator, the moving averages are plotted ahead the way you want to do it. You would just need to set the right bar margin as you need it.

Actually, you may use this indicator to plot all your EMAs, as it can be set to plot over 30 different moving averages.

Things are getting more interesting, when you try to plot ahead indicators with non-equidistant bar spacing activated on multi bar series chart. :-)

Please find below chart attached with the Multi MA Cross indicator showing two EMAs. The chart shows the very last bar and has not been manually displaced.


Reply With Quote
Thanked by:
  #7 (permalink)
 Ratdog 
Lansing Michigan
 
Experience: Beginner
Platform: Nt8
Trading: Es
Posts: 26 since May 2018
Thanks Given: 39
Thanks Received: 25

looking in downloads can not find that amaMA indicator... I'm just terrible...!

Started this thread Reply With Quote
  #8 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090


Ratdog View Post
looking in downloads can not find that amaMA indicator... I'm just terrible...!

click on his name, select upload/download

Reply With Quote
Thanked by:
  #9 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090


Ratdog View Post
looking in downloads can not find that amaMA indicator... I'm just terrible...!

look for folder lizar in indicator list, click on it then select amaMultiCross

Reply With Quote
Thanked by:




Last Updated on July 31, 2018


© 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