Help with indicator coding - EasyLanguage Programming | futures io social day trading
futures io futures trading


Notices

Help with indicator coding
Updated: Views / Replies:123 / 10
Created: by Fobos Attachments:2

Welcome to futures io.

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

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

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

Reply
 2  
 
Thread Tools Search this Thread
 

Help with indicator coding

  #1 (permalink)
Trading Apprentice
Ukraina
 
Futures Experience: Beginner
Platform: NinjaTrader, Multicharts
Favorite Futures: currency
 
Posts: 7 since Aug 2010
Thanks: 1 given, 0 received

Help with indicator coding

Hello! Help with the coding indicator.
It is necessary that if the tick exceeds the tick and this condition is also fulfilled on the next bar, then the values of these ticks should be summed up before the appearance of the down tix over the apix. And output this summarized histogram at the bottom of the chart.
Here is the code I wrote. But apparently there are errors. Please help me fix it.

 
Code
Vars:
UTSum( 0 ),
DTSum( 0 );

array :
UT[](0),
DT[](0);

UT [value1] = UpTicks(value1);
DT [value1] = DownTicks(value1);

if BarType <= 1 or BarType >= 5 then

If (UpTicks > DownTicks) then
begin
UTSum = array_sum(UT,0,value1-1);

Plot1( UTSum, "VolUp",Blue ) ;
end;


If (UpTicks < DownTicks) then

begin
DTSum = array_sum (DT,0,value1-1);

Plot2( DTSum, "VolDn",red ) ;
end;
Plot3( 0, "Zero");

Attached Thumbnails
Help with indicator coding-screenshot_8.png  
Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
 Vendor: www.abctradinggroup.com 
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,846 since Apr 2013
Thanks: 301 given, 1,130 received
Forum Reputation: Legendary


Fobos,

can you elaborate a bit more what exactly you are trying to compute and to measure as this might help in pointing you in the right direction.

Instead of using arrays you might just require two variables that you reset when the opposite condition is met and otherwise add the the value of Up- or DownTicks.

Besides that your "if BarType <= 1 or BarType >= 5 then" statement only affects part of your code, is this intended?

Regards,

ABCTG

Reply With Quote
 
  #4 (permalink)
Trading Apprentice
Ukraina
 
Futures Experience: Beginner
Platform: NinjaTrader, Multicharts
Favorite Futures: currency
 
Posts: 7 since Aug 2010
Thanks: 1 given, 0 received


ABCTG View Post
Fobos,

can you elaborate a bit more what exactly you are trying to compute and to measure as this might help in pointing you in the right direction.

Instead of using arrays you might just require two variables that you reset when the opposite condition is met and otherwise add the the value of Up- or DownTicks.

Besides that your "if BarType <= 1 or BarType >= 5 then" statement only affects part of your code, is this intended?

Regards,

ABCTG

The idea is this. If up ticks in a bar are more than down ticks and in subsequent bars the same condition, then sum up ticks. As soon as subsequent bars exceed down ticks more up ticks, then sum the down ticks. And the amount of up ticks and down ticks display on the historgam below.

Reply With Quote
 
  #5 (permalink)
Trading Apprentice
Ukraina
 
Futures Experience: Beginner
Platform: NinjaTrader, Multicharts
Favorite Futures: currency
 
Posts: 7 since Aug 2010
Thanks: 1 given, 0 received

If not through an array, then how to do it? Help with the code.

Reply With Quote
 
  #6 (permalink)
 Vendor: www.abctradinggroup.com 
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,846 since Apr 2013
Thanks: 301 given, 1,130 received
Forum Reputation: Legendary

Fobos,

based on your code you could accomplish the same with two variables. When your condition "If (UpTicks > DownTicks) " is met you add the value of UpTicks to a variable and vice versa using another variable for your second condition, but using DownTicks.
This way these two variables will hold the summation of UpTicks and DownTicks for the bars where your conditions are valid.

Regards,

ABCTG

Reply With Quote
 
  #7 (permalink)
Trading Apprentice
Ukraina
 
Futures Experience: Beginner
Platform: NinjaTrader, Multicharts
Favorite Futures: currency
 
Posts: 7 since Aug 2010
Thanks: 1 given, 0 received


ABCTG View Post
Fobos,

based on your code you could accomplish the same with two variables. When your condition "If (UpTicks > DownTicks) " is met you add the value of UpTicks to a variable and vice versa using another variable for your second condition, but using DownTicks.
This way these two variables will hold the summation of UpTicks and DownTicks for the bars where your conditions are valid.

Regards,

ABCTG

 
Code
Vars:
UTSum( 0 ),
DTSum( 0 );



if BarType <= 1 or BarType >= 5 then

If (UpTicks > DownTicks) then
begin
UTSum = UTSum + UpTicks;

Plot1( UTSum, "VolUp",Blue ) ;
end;

if BarType <= 1 or BarType >= 5 then

If (UpTicks < DownTicks) then

begin
DTSum = DTSum + DownTicks ;

Plot2( DTSum, "VolDn",red ) ;
end;
Plot3( 0, "Zero");
Changed the code. But now he summarizes the progression.How to reset the summation after the opposite condition?

Attached Thumbnails
Help with indicator coding-screenshot_8.png  

Last edited by Fobos; November 16th, 2018 at 06:22 AM.
Reply With Quote
 
  #8 (permalink)
 Vendor: www.abctradinggroup.com 
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,846 since Apr 2013
Thanks: 301 given, 1,130 received
Forum Reputation: Legendary

Fobos,

you could for example set the variable to 0 when the opposite condition is met.

Regards,

ABCTG


Fobos
How to reset the summation after the opposite condition?


Reply With Quote
 
  #9 (permalink)
Trading Apprentice
Ukraina
 
Futures Experience: Beginner
Platform: NinjaTrader, Multicharts
Favorite Futures: currency
 
Posts: 7 since Aug 2010
Thanks: 1 given, 0 received


ABCTG View Post
Fobos,

you could for example set the variable to 0 when the opposite condition is met.

Regards,

ABCTG

Thank you so much! Everything worked out. Tell me, what else is the opportunity to do this? For general development is interesting.

Reply With Quote
 
  #10 (permalink)
 Vendor: www.abctradinggroup.com 
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,846 since Apr 2013
Thanks: 301 given, 1,130 received
Forum Reputation: Legendary


Fobos ,

you are welcome.

I am afraid I don't understand what you mean with "what else is the opportunity to do this?", maybe you can elaborate a bit more what you mean?

Regards,

ABCTG


Fobos View Post
Thank you so much! Everything worked out. Tell me, what else is the opportunity to do this? For general development is interesting.


Reply With Quote

Reply



futures io > > > > > Help with indicator coding

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)
 

Fundraiser: Feeding Families in Need (ends Dec 17)

December
 

Ask Me Anything (Brokers & Platforms) w/Ilan Levy Mayer @ Cannon Trading

Dec 13
 

Battlestations! Show us your trading desks w/GFF Brokers ($750 in Prizes)

January
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help coding DV2 indicator bigAllan NinjaTrader Programming 3 August 22nd, 2014 07:26 PM
Plotting tool coding help. Can someone help? Thanks hector24 NinjaTrader 0 December 6th, 2012 07:41 PM
(Coding Help Request) Week To Date New High/Low Indicator - Alert Nothing Done ThinkOrSwim Programming 0 May 17th, 2012 06:02 AM
Color coding for indicator line help? hector24 NinjaTrader Programming 8 July 13th, 2011 10:10 PM
Coding Help for Indicator Conversion syxforex NinjaTrader 5 May 15th, 2010 12:23 PM


Tags
abc, code, dow, easylanguage, histogram, how to, indicator, indicators, information, multicharts, neoticker, tradestation, values, variable

All times are GMT -4. The time now is 11:09 PM. (this page content is cached, log in for real-time version)

Copyright © 2018 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
Page generated 2018-12-13 in 0.08 seconds with 14 queries on phoenix