Right Side Margin Cutoff - futures io
futures io futures trading



Right Side Margin Cutoff


Discussion in NinjaTrader

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




Welcome to futures io: the largest futures trading community on the planet, with well over 100,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Thread Tools Search this Thread
 

Right Side Margin Cutoff

  #1 (permalink)
Lansing Michigan
 
Experience: Beginner
Platform: Nt8
Trading: Es
 
Posts: 26 since May 2018
Thanks: 38 given, 15 received

Right Side Margin Cutoff

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:	29
Size:	157.1 KB
ID:	252354   Click image for larger version

Name:	Picture 2 Right Side Margin.png
Views:	27
Size:	144.3 KB
ID:	252357  
Attached Files
Register to download File Type: zip NT8_IchimokuSignal_B02.zip (13.5 KB, 12 views)
Reply With Quote

Can you help answer these questions
from other members on futures io?
Convert NinjaTrader NT7 indicator to Tradestation EasyLanguage and RADARSCREEN
Platforms and Indicators
Issue meeting order entry conditions
Elite Automated NinjaTrader Trading
Last 5 minutes Label
ThinkOrSwim
Moving average with Lag reduction
NinjaTrader
Linux?
ThinkOrSwim
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Spoo-nalysis ES e-mini futures S&P 500
230 thanks
What is your single biggest weakness?
59 thanks
Want your NinjaTrader indicator created, free?
47 thanks
Is Amp at risk of going under?
40 thanks
VWAP for stock index futures trading?
39 thanks
 
  #2 (permalink)
Evans GA/USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: NinjaTrader Brokerage - Philip Capital
Trading: NQ,ES,6E,CL
 
TradingOgre's Avatar
 
Posts: 550 since Jul 2018
Thanks: 902 given, 1,641 received


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 futures io Trade Journal Reply With Quote
 
  #3 (permalink)
Evans GA/USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: NinjaTrader Brokerage - Philip Capital
Trading: NQ,ES,6E,CL
 
TradingOgre's Avatar
 
Posts: 550 since Jul 2018
Thanks: 902 given, 1,641 received


From the ninjatrader forum:




It appears it cannot be set from the script.

Visit my futures io Trade Journal Reply With Quote
 
  #4 (permalink)
Super Moderator
Sarasota FL
 
Experience: Intermediate
Platform: NinjaTrader, Sierra Chart
Trading: ES, YM
 
bobwest's Avatar
 
Posts: 5,626 since Jan 2013
Thanks: 44,072 given, 19,019 received


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: https://futures.io/elite-circle/1261-want-your-ninjatrader-indicator-created-free.html

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.

Visit my futures io Trade Journal Reply With Quote
 
  #5 (permalink)
Market Wizard
Berlin, Europe
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,824 since Mar 2010
Thanks: 4,237 given, 26,522 received

Setting the right side margin


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
The following 4 users say Thank You to Fat Tails for this post:
 
  #6 (permalink)
Market Wizard
Berlin, Europe
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,824 since Mar 2010
Thanks: 4,237 given, 26,522 received


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
The following 3 users say Thank You to Fat Tails for this post:
 
  #7 (permalink)
Lansing Michigan
 
Experience: Beginner
Platform: Nt8
Trading: Es
 
Posts: 26 since May 2018
Thanks: 38 given, 15 received

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

Reply With Quote
 
  #8 (permalink)
the coin hunter
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
 
cory's Avatar
 
Posts: 5,994 since Jun 2009
Thanks: 830 given, 7,816 received


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
The following 3 users say Thank You to cory for this post:
 
  #9 (permalink)
the coin hunter
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
 
cory's Avatar
 
Posts: 5,994 since Jun 2009
Thanks: 830 given, 7,816 received


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
The following 2 users say Thank You to cory for this post:



futures io Trading Community Platforms and Indicators NinjaTrader > Right Side Margin Cutoff




Upcoming Webinars and Events
 

Understanding Order Flow Stop Runs & Icebergs w/Bookmap

May 28
     



Copyright © 2020 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts