Coding Multicharts Ticki for OMX (stockholm) futures - MultiCharts | futures io social day trading
futures io futures trading


Coding Multicharts Ticki for OMX (stockholm) futures
Updated: Views / Replies:935 / 13
Created: by stefanols Attachments:4

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 90,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 dont 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
 4  
 
Thread Tools Search this Thread
 

Coding Multicharts Ticki for OMX (stockholm) futures

  #1 (permalink)
zivo
Helsingborg
 
Futures Experience: Intermediate
Platform: Bullcharts, Multicharts
Favorite Futures: ES and scandinavian Stocks
 
Posts: 16 since May 2011
Thanks: 5 given, 5 received

Coding Multicharts Ticki for OMX (stockholm) futures

Hi,
I am trying to do a ticki indicator but for Swedish stocks and futures.
Hope that someone can see where I am doing wrong.

Thanks in advance. BR Stefan


 
Code
Input: NumberInstruments(47);

Vars: Datacounter(0);
Vars: Newuptick (0);
Vars: NewupTickAgg (0);
Vars: NewdownTick (0);
Vars: NewdownTickAgg (0);
Vars: Uptickcount (0);
Vars: downtickcount (0);
//Vars: intrabarpersist Uptick (0);
//Vars: intrabarpersist Downtick (0);


//reset variables
NewupTick =0;
NewupTickAgg =0;
NewdownTick =0;
NewdownTickAgg =0;

For datacounter = 2 to Numberinstruments begin
if close > close[ 1 ] of data(datacounter) then UpTickCount = upTickCount[ 1 ] + 1;

if close < close[ 1 ] of data(datacounter) then downtickcount = downtickcount[1] + 1;

end;

//UpTickCount = (NewupTick /(Numberinstruments-1)) * 100;
//Downtickcount = (NewdownTick/(Numberinstruments-1)) * 100;

Value1 = UpTickCount-Downtickcount;
Plot1(value1,"");


Last edited by stefanols; July 3rd, 2016 at 03:12 AM.
Reply With Quote
 
  #2 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,533 since Apr 2013
Thanks: 231 given, 855 received
Forum Reputation: Legendary

Answer
This post has been selected as an answer to the original posters question Answer

Stefan,

depending on your timeframe you might want to consider using intrabarpersist variables.

One thing that I don't think you intend to do is checking the Close of Data 1 against your other datastreams, which
the below lines do.

 
Code
if close > close[ 1 ] of data(datacounter) then UpTickCount = upTickCount[ 1 ] + 1;

if close < close[ 1 ] of data(datacounter) then downtickcount = downtickcount[1] + 1;
I suppose it should be
 
Code
if close of data(datacounter) > close[ 1 ] of data(datacounter) then UpTickCount = upTickCount[ 1 ] + 1;

if close of data(datacounter) < close[ 1 ] of data(datacounter) then downtickcount = downtickcount[1] + 1;
Regards,

ABCTG

Reply With Quote
 
  #3 (permalink)
zivo
Helsingborg
 
Futures Experience: Intermediate
Platform: Bullcharts, Multicharts
Favorite Futures: ES and scandinavian Stocks
 
Posts: 16 since May 2011
Thanks: 5 given, 5 received

Ticki indicator OMX


Hi,

Thanks for your input.

I have added that and the barstatus but it is sill not showing what I want.

The result should be in the range plus 47 to minus 47 but it is often below 1000.

Any chance that someone can see what is wrong.

Thanks in advance and BR Stefan


Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).



 
Code
[Ticki indicator for Swedish index OMXS30 with 47 of the most important stocks. Shows net stocks on an uptick (+47 to -47. Should mirror ticki for NYSE] 

Input: NumberInstruments(47); //number of instruments

Vars: Datacounter(0);
Vars: Newuptick (0);
Vars: NewdownTick (0);
Vars: Uptickcount (0);
Vars: downtickcount (0);
Vars: Tickcount (0);



//reset variables, resets the number of stocks on an uptick for its time frame. 
NewupTick = 0;
NewdownTick = 0;
Tickcount = 0;
Uptickcount = 0;
downtickcount = 0;


For datacounter = 2 to Numberinstruments begin

if barstatus (datacounter) =2 then begin {tick close}


if close of data(datacounter) > close[ 1 ] of data(datacounter) then newupTick = newUptick[1] + 1;

if Close of data(datacounter) < close[ 1 ] of data(datacounter) then newdowntick = newdowntick[1] + 1;

//if (barstatus(datacounter) = 2)  and close of data(datacounter) > close[ 1 ] of data(datacounter) then newupTick = newUptick[1] + 1;

//if (barstatus(datacounter) = 2) and close of data(datacounter) < close[ 1 ] of data(datacounter) and (barstatus(datacounter) = 2) then newdowntick = newdowntick[1] + 1;

end;
end;

Uptickcount = newuptick;
downtickcount = newdowntick;

//Plot1(uptickcount-downtickcount,"Uptickcount-downtickcount");

Plot1 (uptickcount,"upticks");
PLot2 (downtickcount,"downticks");


Last edited by stefanols; July 6th, 2016 at 08:13 AM.
Reply With Quote
 
  #4 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,533 since Apr 2013
Thanks: 231 given, 855 received
Forum Reputation: Legendary

Stefan,

when coming across situations that are not clear or hard to explain, it is usually a good idea to add print statements to the code to shed some light on what is going on.

I would strongly suggest to start properly commenting your code. Not only because it makes it easier to help tracking down issues when the intention of a code snippet is clear, but it will save you a lot of time in the long run. Imagine you come back to a code you wrote a few month or years ago. Without having comments to guide you through your intentions, you will spend a lot of time thinking yourself back into the code.

Regarding your issue, let's assume newUpTick = 10 at the end of this bar. Even though you set newUpTick to 0 on the next code execution, what will newupTick be at the end of the next bar (assuming just one data stream fulfilled your codition of close > close[1])?
Is this what you want? If not, what do you want to show instead?

Regards,

ABCTG

Reply With Quote
 
  #5 (permalink)
zivo
Helsingborg
 
Futures Experience: Intermediate
Platform: Bullcharts, Multicharts
Favorite Futures: ES and scandinavian Stocks
 
Posts: 16 since May 2011
Thanks: 5 given, 5 received

Ticki OMX

Hi,

Thanks again. Really appreciate it.

I have added some explanation.

As you say if a certain time frame e.g. 3 min at the end of the bar has accumulated 30 stocks on an uptick and 17 on downtick out of the total 47 data streams and stocks it should show 10. For next bar it should start with value 10 and add and subtract to this number.

Preferable shown as a candle stock e.g. open 10, high 15, low 2 and close 13.

Is this possible?

Hope you understand me better now and thanks in advance.

Best regards

Stefan

Reply With Quote
 
  #6 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,533 since Apr 2013
Thanks: 231 given, 855 received
Forum Reputation: Legendary

Stefan,

let's go over this again, as I am trying to get you to see what is going on in your code.

Let's assume newUpTick = 10 at the end of this bar.

What will newupTick be at the end of the next bar assuming just one data stream fulfilled your condition of close > close[1]?

Or in other words will it be +1 or something else?

Regards,

ABCTG

Reply With Quote
 
  #7 (permalink)
Trading Apprentice
Queens New York
 
Futures Experience: Intermediate
Platform: NinjaTrader, TD Ameritrad
Favorite Futures: futures
 
Posts: 1 since Jun 2016
Thanks: 0 given, 0 received

Thinkorswim alert

hi to all.. i will like to know if someone can help me to create an email and text alert on thinkorswim, i will like to create the alert on Parabolic Sar. i will like to create the Parabolic Sar alert on 1 Hours charts on the Futures. thanks to all..

Reply With Quote
 
  #8 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,533 since Apr 2013
Thanks: 231 given, 855 received
Forum Reputation: Legendary

trader201,

I am sure someone is able and willing to help you, but I am afraid they might miss your post as it's not in the correct section of the forum and within an unrelated topic. Therefore you might have better chances getting help if you create your own thread or post in the ThinkOrSwim section of the forum.

Regards,

ABCTG


trader201 View Post
hi to all.. i will like to know if someone can help me to create an email and text alert on thinkorswim, i will like to create the alert on Parabolic Sar. i will like to create the Parabolic Sar alert on 1 Hours charts on the Futures. thanks to all..


Reply With Quote
 
  #9 (permalink)
zivo
Helsingborg
 
Futures Experience: Intermediate
Platform: Bullcharts, Multicharts
Favorite Futures: ES and scandinavian Stocks
 
Posts: 16 since May 2011
Thanks: 5 given, 5 received

OMX TIcki

Hi,

If it is possible to have it like a candlestick then it would be natural it opens at 10

O =10
H e.g 13
L e.g. 8
C =11

If not possible I would be happy that is shows 1 and previous result 10.

Enclose an image of esignal ticki feed. Understand that this is an instrument and not
an indicator that I am trying to create.

Best regards

Stefan
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote
 
  #10 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,533 since Apr 2013
Thanks: 231 given, 855 received
Forum Reputation: Legendary


Stefan,

that would be the final step, but one thing at a time. Let's make the first step by answering my two questions from the previous post. I don't mean how you want it to look, but
using the example I gave you and thinking about what your code would return as a value given the example.
This might help you understand where it goes wrong, which is the first step towards fixing the issue and getting the final result.

Regards,

ABCTG


stefanols View Post
Hi,

If it is possible to have it like a candlestick then it would be natural it opens at 10

O =10
H e.g 13
L e.g. 8
C =11

If not possible I would be happy that is shows 1 and previous result 10.

Enclose an image of esignal ticki feed. Understand that this is an instrument and not
an indicator that I am trying to create.

Best regards

Stefan
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


Reply With Quote

Reply



futures io > > > > Coding Multicharts Ticki for OMX (stockholm) futures

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
MultiCharts Coding Help vitrader MultiCharts 2 April 21st, 2016 09:06 AM
RFQ for coding strategy in Multicharts samsam1231 MultiCharts 1 November 20th, 2015 05:47 PM
How to reference a chart's indicators when coding in MultiCharts? jesse514 MultiCharts 3 April 10th, 2014 05:42 AM
Trading Technologies goes live on Nasdaq OMX eSpeed kbit News and Current Events 0 March 7th, 2014 03:43 AM
NinjaTrader data feed for Nasdaq OMX (Stockholm?) JakobR Reviews of Brokers and Data Feeds 4 April 19th, 2011 09:52 AM


All times are GMT -4. The time now is 11:24 PM.

Copyright © 2017 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 2017-12-17 in 0.16 seconds with 40 queries on phoenix via your IP 54.221.73.186