Hull MA jthma coding problem - EasyLanguage Programming | futures.io
futures.io futures trading


Hull MA jthma coding problem
Started: by cactus363 Views / Replies:127 / 4
Last Reply: Attachments:1

Welcome to futures.io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • 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, and we will never resell your private information.

-- Big Mike

Reply
 
Thread Tools Search this Thread
 

Hull MA jthma coding problem

  #1 (permalink)
Elite Member
Haslemere, United Kingdom
 
Futures Experience: Intermediate
Platform: Multicharts 64
Broker/Data: IQFeed, InteractiveBrokers, CQG
Favorite Futures: CL,ES and soft comodities
 
Posts: 5 since Oct 2013
Thanks: 5 given, 0 received

Hull MA jthma coding problem

Hi,
I have compiled the bellow jthma code (available from github open source) but I get a vertical line at the start of the chart.
Once I scroll right, the jthma displays correctly on the chart.
Any idea what causes this?

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

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: abctradinggroup.com 
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,191 since Apr 2013
Thanks: 198 given, 681 received


cactus363,

this is caused by the first value you plot (probably 0 or another small value). One way to overcome this is by starting to plot the HMA only when the number of bars on the chart is larger than the length input you are using:

 
Code
if CurrentBar > length then
Plot1(Value1, "jtHMA");
Adding the line "if CurrentBar > length then" in front of Plot1 will get rid of the vertical line.

Regards,

ABCTG

Reply With Quote
The following 2 users say Thank You to ABCTG for this post:
 
  #4 (permalink)
Elite Member
Haslemere, United Kingdom
 
Futures Experience: Intermediate
Platform: Multicharts 64
Broker/Data: IQFeed, InteractiveBrokers, CQG
Favorite Futures: CL,ES and soft comodities
 
Posts: 5 since Oct 2013
Thanks: 5 given, 0 received

Thank you ABCTG, I really appreciate your help and very quick response.

The solution is so simple (once someone shows it to me ).

Reply With Quote
 
  #5 (permalink)
 Vendor: abctradinggroup.com 
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,191 since Apr 2013
Thanks: 198 given, 681 received

Futures Edge on FIO

Which products do you trade?

 
cactus363,

you are welcome. I am glad to hear that it works for you.

Regards,

ABCTG

Reply With Quote
The following user says Thank You to ABCTG for this post:

Reply



futures.io > > > > > Hull MA jthma coding problem

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Anthony Drager: Pulling the trigger with confidence

Elite only
 

Leo Murphy: The Art and Science of Technical Analysis

Elite only
 

FuturesTrader71: Ask Me Anything

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem coding a strategy with LinRegSlopeSFX stoicbuddha NinjaTrader Programming 3 August 5th, 2016 07:44 AM
anyone have the hull ma code for auto-trading with mc 64, ms os 7.0 pro? quantum777 MultiCharts 1 June 30th, 2015 08:01 AM
Does anyone have the ELA for Hull MA and Hurst Channels? quantum777 MultiCharts 1 June 4th, 2015 08:51 PM
Jeff's Universal MA arrow problem. Tremendous exit indicator!!! mannya The Elite Circle 3 March 15th, 2013 05:23 PM
Double MA and Triple MA Script Sadboybh NinjaTrader Programming 8 June 17th, 2011 09:57 AM


All times are GMT -4. The time now is 02:56 PM.

no new posts
Page generated 2017-01-23 in 0.09 seconds with 20 queries on phoenix via your IP 54.166.75.80