NexusFi: Find Your Edge


Home Menu

 





Indicator Issue - Radar Screen


Discussion in TradeStation

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




 
Search this Thread
  #1 (permalink)
Basti203
The Hague, Netherlands
 
Posts: 2 since Feb 2022
Thanks Given: 0
Thanks Received: 0

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 NexusFi?
Kharg Island at 6%, Regime Fall at 1.5% -- The Black Swa …
Prediction Markets & Event Contracts
Trump Truth Social Fires Hormuz From 10% to 59% -- Arsen …
Prediction Markets & Event Contracts
One Wallet Made $200K in Hours: AP Probes Polymarket Cea …
Prediction Markets & Event Contracts
Iran Lebanon Problem Kills Switzerland Talks, Brent at $ …
Prediction Markets & Event Contracts
CFTC Opens First COT Report Review in 20 Years -- Asks W …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
205 thanks
Sober Journey With S&P
21 thanks
30 Sessions
20 thanks
Volume Indicators
8 thanks
Thanks Mike. Godspeed.
7 thanks
  #2 (permalink)
 bchip 
Torino, Italy
 
Experience: Advanced
Platform: TradeStation
Trading: ES,YM,CL,GC
Posts: 132 since Sep 2017
Thanks Given: 160
Thanks Received: 117


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:

Ive also had the issue that the Radar differed from my view.
What caused the issued was that the difference in data between the 2 "charts". I.e. the normal chart showed months of data
but the Radar screen only pulled in (eg) the last 100 days

So maybe try this, see if it resolves it:
Loading Additional Data for Accumulative Calculations


Reply With Quote




Last Updated on March 14, 2022


© 2026 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 - Downloads - Top
no new posts