Indicator Issue - Radar Screen - futures io
futures io



Indicator Issue - Radar Screen


Discussion in EasyLanguage Programming

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




Welcome to futures io: the largest futures trading community on the planet, with well over 150,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)

 
Search this Thread
 

Indicator Issue - Radar Screen

(login for full post details)
  #1 (permalink)
Basti203
The Hague, Netherlands
 
 
Posts: 2 since Feb 2022
Thanks: 0 given, 0 received

Hi guys,

I made a COT Oscillator based on the COT NET Position Indicator.
On the chart it works perfectly fine, however on the RadarScreen I only see numbers 0 or 100.
Does someone have an idea what the issue might be?
I tried adjusting the RadarScreen with "load additional bars" but didn't work...

Many thanks in advance for your help!!

here a picture and the code:

 
Code
 
Code
using elsystem; 
 
input:   
	int FuturesOnly_Or_FuturesAndOptions_1_or_2( 1 ) [ 
		DisplayName = "FuturesOnly_Or_FuturesAndOptions_1_or_2",  
		ToolTip = "Enter 1 to use the 'futures only' report;  enter 2 to use the 'futures and options' report."], 
		 weeks_back(34);  
 
variables: 
	bool Initialized( false ), 
	string FieldNamePrefix( "" ), 
	string CommLongFieldNme( "" ), 
	string CommShortFieldNme( "" ), 
	string NonCommLongFieldNme( "" ), 
	string NonCommShortFieldNme( "" ), 
	string SpecLongFieldNme( "" ), 
 	string SpecShortFieldNme( "" ), 
    double CommLong( 0 ), 
	double oCommLongErr( 0 ), 
	double CommShort( 0 ), 
	double oCommShortErr( 0 ), 
	double NonCommLong( 0 ), 
	double oNonCommLongErr( 0 ), 
	double NonCommShort( 0 ), 
	double oNonCommShortErr( 0 ), 
	double SpecLong( 0 ), 
	double oSpecLongErr( 0 ), 
	double SpecShort( 0 ), 
	double oSpecShortErr( 0 ), 
	double CommNet( 0 ), 
	double NonCommNet( 0 ), 
	double SpecNet( 0 ), 
	double Min_Net_C (0),  
	double Max_Net_C (0),  
	double COM_Index (0),  
	double LS_Index (0),  
	double SS_Index (0), 
	double Min_Net_LS(0), 
	double Max_Net_LS(0),  
	double Min_Net_SS(0), 
	double Max_Net_SS(0); 
 
if Initialized = false then 
begin 
	if Category > 0 then 
		throw Exception.Create( !( "Commitments of Traders studies can be applied only to futures symbols." ) ); 
	 
	Initialized = true; 
	 
	if FuturesOnly_Or_FuturesAndOptions_1_or_2 = 1 then 
		FieldNamePrefix = "COTF-" 
	else 
		FieldNamePrefix = "COTC-"; 
	 
	CommLongFieldNme = FieldNamePrefix + "12"; 
	CommShortFieldNme = FieldNamePrefix + "13"; 
	NonCommLongFieldNme = FieldNamePrefix + "9"; 
	NonCommShortFieldNme = FieldNamePrefix + "10"; 
	SpecLongFieldNme = FieldNamePrefix + "16"; 
 	SpecShortFieldNme = FieldNamePrefix + "17";	 
end; 
 
CommLong = FundValue( CommLongFieldNme, 0, oCommLongErr ); 
CommShort = FundValue( CommShortFieldNme, 0, oCommShortErr); 
NonCommLong = FundValue( NonCommLongFieldNme, 0, oNonCommLongErr ); 
NonCommShort = FundValue( NonCommShortFieldNme, 0, oNonCommShortErr ); 
SpecLong = FundValue( SpecLongFieldNme, 0, oSpecLongErr );  
SpecShort = FundValue( SpecShortFieldNme, 0, oSpecShortErr ); 
 
if oCommLongErr = fdrOk and oCommShortErr = fdrOk then 
begin 
	CommNet = CommLong - CommShort; 
	Min_Net_C = (Lowest (CommNet, weeks_back));  
	Max_Net_C = (Highest (CommNet, weeks_back));  
	COM_Index = IFF(Max_Net_C - Min_Net_C <>0, 100*(CommNet - Min_Net_C) / (Max_Net_C - Min_Net_C),1);  
	Plot1( COM_Index, !( "Comm" ) ); 
end; 
 
if oNonCommLongErr = fdrOk and oNonCommShortErr = fdrOk then 
begin 
	NonCommNet = NonCommLong - NonCommShort; 
	Min_Net_LS = (Lowest (NonCommNet, weeks_back));  
	Max_Net_LS = (Highest (NonCommNet, weeks_back));  
	LS_Index = IFF(Max_Net_LS - Min_Net_LS <>0, 100*(NonCommNet - Min_Net_LS) / (Max_Net_LS - Min_Net_LS),1);  
	Plot2( LS_Index, !( "LargeSpec" ) ); 
end; 
 
if oSpecLongErr = fdrOk and oSpecShortErr = fdrOk then 
begin 
	SpecNet = SpecLong - SpecShort; 
	Min_Net_SS = (Lowest (SpecNet, weeks_back));  
	Max_Net_SS = (Highest (SpecNet, weeks_back));  
	SS_Index = IFF(Min_Net_SS - Max_Net_SS <>0, 100*(SpecNet - Min_Net_SS) / (Max_Net_SS - Min_Net_SS),1);   
	Plot3( SS_Index, !( "SmallSpec" ) );  
end;

Reply With Quote

Can you help answer these questions
from other members on futures io?
Big Mo Indicator for NT8
NinjaTrader
Market on Close data within IB
Platforms and Indicators
in depth understanding of last, bid, and ask volume in c …
NinjaTrader
How do I create Strategy with the Second Entry indicator
NinjaTrader
How to pay for market data with Dorman LLC
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Is anyone actually making money?
88 thanks
An embarrassing, honest confession
25 thanks
Sierra vs. Ninja : why I chose .....
8 thanks
ApexTraderFunding.com experience and review
8 thanks
Want your NinjaTrader indicator created, free?
7 thanks
 
(login for full post details)
  #2 (permalink)
 paps 
Market Wizard
SF Bay Area + CA/US
 
Experience: None
Platform: TS, TOS, Ninja(Analytics)
Trading: NQ CL, ES when volatile mrkts
 
paps's Avatar
 
Posts: 1,737 since Oct 2011
Thanks: 2,175 given, 1,723 received


Basti203 View Post
Hi guys,

I made a COT Oscillator based on the COT NET Position Indicator.
On the chart it works perfectly fine, however on the RadarScreen I only see numbers 0 or 100.
Does someone have an idea what the issue might be?
I tried adjusting the RadarScreen with "load additional bars" but didn't work...

Many thanks in advance for your help!!

here a picture and the code:

 
Code
 
Code
using elsystem; 
 
input:   
	int FuturesOnly_Or_FuturesAndOptions_1_or_2( 1 ) [ 
		DisplayName = "FuturesOnly_Or_FuturesAndOptions_1_or_2",  
		ToolTip = "Enter 1 to use the 'futures only' report;  enter 2 to use the 'futures and options' report."], 
		 weeks_back(34);  
 
variables: 
	bool Initialized( false ), 
	string FieldNamePrefix( "" ), 
	string CommLongFieldNme( "" ), 
	string CommShortFieldNme( "" ), 
	string NonCommLongFieldNme( "" ), 
	string NonCommShortFieldNme( "" ), 
	string SpecLongFieldNme( "" ), 
 	string SpecShortFieldNme( "" ), 
    double CommLong( 0 ), 
	double oCommLongErr( 0 ), 
	double CommShort( 0 ), 
	double oCommShortErr( 0 ), 
	double NonCommLong( 0 ), 
	double oNonCommLongErr( 0 ), 
	double NonCommShort( 0 ), 
	double oNonCommShortErr( 0 ), 
	double SpecLong( 0 ), 
	double oSpecLongErr( 0 ), 
	double SpecShort( 0 ), 
	double oSpecShortErr( 0 ), 
	double CommNet( 0 ), 
	double NonCommNet( 0 ), 
	double SpecNet( 0 ), 
	double Min_Net_C (0),  
	double Max_Net_C (0),  
	double COM_Index (0),  
	double LS_Index (0),  
	double SS_Index (0), 
	double Min_Net_LS(0), 
	double Max_Net_LS(0),  
	double Min_Net_SS(0), 
	double Max_Net_SS(0); 
 
if Initialized = false then 
begin 
	if Category > 0 then 
		throw Exception.Create( !( "Commitments of Traders studies can be applied only to futures symbols." ) ); 
	 
	Initialized = true; 
	 
	if FuturesOnly_Or_FuturesAndOptions_1_or_2 = 1 then 
		FieldNamePrefix = "COTF-" 
	else 
		FieldNamePrefix = "COTC-"; 
	 
	CommLongFieldNme = FieldNamePrefix + "12"; 
	CommShortFieldNme = FieldNamePrefix + "13"; 
	NonCommLongFieldNme = FieldNamePrefix + "9"; 
	NonCommShortFieldNme = FieldNamePrefix + "10"; 
	SpecLongFieldNme = FieldNamePrefix + "16"; 
 	SpecShortFieldNme = FieldNamePrefix + "17";	 
end; 
 
CommLong = FundValue( CommLongFieldNme, 0, oCommLongErr ); 
CommShort = FundValue( CommShortFieldNme, 0, oCommShortErr); 
NonCommLong = FundValue( NonCommLongFieldNme, 0, oNonCommLongErr ); 
NonCommShort = FundValue( NonCommShortFieldNme, 0, oNonCommShortErr ); 
SpecLong = FundValue( SpecLongFieldNme, 0, oSpecLongErr );  
SpecShort = FundValue( SpecShortFieldNme, 0, oSpecShortErr ); 
 
if oCommLongErr = fdrOk and oCommShortErr = fdrOk then 
begin 
	CommNet = CommLong - CommShort; 
	Min_Net_C = (Lowest (CommNet, weeks_back));  
	Max_Net_C = (Highest (CommNet, weeks_back));  
	COM_Index = IFF(Max_Net_C - Min_Net_C <>0, 100*(CommNet - Min_Net_C) / (Max_Net_C - Min_Net_C),1);  
	Plot1( COM_Index, !( "Comm" ) ); 
end; 
 
if oNonCommLongErr = fdrOk and oNonCommShortErr = fdrOk then 
begin 
	NonCommNet = NonCommLong - NonCommShort; 
	Min_Net_LS = (Lowest (NonCommNet, weeks_back));  
	Max_Net_LS = (Highest (NonCommNet, weeks_back));  
	LS_Index = IFF(Max_Net_LS - Min_Net_LS <>0, 100*(NonCommNet - Min_Net_LS) / (Max_Net_LS - Min_Net_LS),1);  
	Plot2( LS_Index, !( "LargeSpec" ) ); 
end; 
 
if oSpecLongErr = fdrOk and oSpecShortErr = fdrOk then 
begin 
	SpecNet = SpecLong - SpecShort; 
	Min_Net_SS = (Lowest (SpecNet, weeks_back));  
	Max_Net_SS = (Highest (SpecNet, weeks_back));  
	SS_Index = IFF(Min_Net_SS - Max_Net_SS <>0, 100*(SpecNet - Min_Net_SS) / (Max_Net_SS - Min_Net_SS),1);   
	Plot3( SS_Index, !( "SmallSpec" ) );  
end;

you may wish to also post in the TS forums, where many talk of development and indicators

Reply With Quote
 
(login for full post details)
  #3 (permalink)
 Anka Software   is a Vendor
 
 
Posts: 19 since Jan 2013
Thanks: 0 given, 9 received


Whats the idea behind placing the plot names in a "!( )"?
Plot1( COM_Index, !( "Comm" ) );

Try
Plot1( COM_Index, "Comm" );

Reply With Quote


futures io Trading Community Platforms and Indicators EasyLanguage Programming > Indicator Issue - Radar Screen


Last Updated on April 2, 2022


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
     



Copyright © 2023 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), 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