Dark Theme
Light Theme
Trading Articles
Article Categories
Article Tools
Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
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 for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Indicator Issue - Radar Screen
Updated April 2, 2022
trending_up
4,742 views
thumb_up
0 thanks given
group
3 followers
forum
2 posts
attach_file
1 attachments
Indicator Issue - Radar Screen
February 1st, 2022, 09:25 AM
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
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;
Can you help answer these questions from other members on NexusFi?
Best Threads (Most Thanked) in the last 7 days on NexusFi
February 13th, 2022, 04:51 PM
SF Bay Area + CA/US
Experience: None
Platform: TS, TOS, Ninja(Analytics)
Trading: NQ CL, ES when volatile mrkts
Posts: 1,739 since Oct 2011
Thanks Given: 2,176
Thanks Received: 1,726
Basti203
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
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
April 2nd, 2022, 12:14 AM
Posts: 19 since Jan 2013
Thanks Given: 0
Thanks Received: 9
Whats the idea behind placing the plot names in a "!( )"?
Plot1( COM_Index, !( "Comm" ) );
Try
Plot1( COM_Index, "Comm" );
Last Updated on April 2, 2022