NexusFi: Find Your Edge


Home Menu

 





Autotrade on close above/below Hull MA


Discussion in MultiCharts

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




 
Search this Thread

Autotrade on close above/below Hull MA

  #1 (permalink)
 tdmtrader 
Jacksonville FL
 
Experience: Master
Platform: NinjaTrader
Trading: ES, Currency Futures, Stocks
Posts: 8 since Mar 2011
Thanks Given: 12
Thanks Received: 5

Hi all.

Is there a strategy that uses the HULL MA, and does a simple Buy/Sell when the bar CLOSES above/below the Hull MA?

If the position is long, and the price bar closes below the Hull MA, then it will REVERSE the position and go short - and vice versa. I have been testing this in TOS with the included "MovAvgStrat" strategy.

I am new to Multicharts.net , and have no coding experience. However, this seems like it is possibly one of the easiest strategies to code?

I have managed to import a HULL MA indicator which shows up identical to TOS. It looks like Multicharts may have a strategy similar included, but i believe it uses a simple MA.

Any help in getting this coded? -- or will I need to either learn coding or pay someone?

Thanks!

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Deepmoney LLM
Elite Quantitative GenAI/LLM
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Better Renko Gaps
The Elite Circle
Are there any eval firms that allow you to sink to your …
Traders Hideout
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
 
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,431 since Apr 2013
Thanks Given: 481
Thanks Received: 1,623

tdmtrader,

I am not aware of any built-in strategies using the Hull MA, but you could use the built-in MovAvg_Cross_LE and MovAvg_Cross_SE strategies as starting point and exchange the simple moving average with a Hull average in each of them. You might want to save the original version under a different name and do your modifications within the newly created versions. Otherwise each installation/update of MC would overwrite your changes.
Your version of the Hull indicator might even come with a function and you can take a look at how it calls that function and follow the same logic within the strategy modification.

Regards,

ABCTG

Follow me on Twitter Reply With Quote
  #3 (permalink)
 tdmtrader 
Jacksonville FL
 
Experience: Master
Platform: NinjaTrader
Trading: ES, Currency Futures, Stocks
Posts: 8 since Mar 2011
Thanks Given: 12
Thanks Received: 5



ABCTG View Post
tdmtrader,

I am not aware of any built-in strategies using the Hull MA, but you could use the built-in MovAvg_Cross_LE and MovAvg_Cross_SE strategies as starting point and exchange the simple moving average with a Hull average in each of them. You might want to save the original version under a different name and do your modifications within the newly created versions. Otherwise each installation/update of MC would overwrite your changes.
Your version of the Hull indicator might even come with a function and you can take a look at how it calls that function and follow the same logic within the strategy modification.

Regards,

ABCTG

Thanks for your reply!
The indicator that i downloaded is from https://www.multicharts.com/discussion/viewtopic.php?t=50895
It looks like it created a function called "HMA_"
When looking at the indicator, it has the ability to do Alerts (On Bar Close), which sounds an audible alert.

If I understand you correctly, I could possibly replace the called function in MovAvg_Cross_LE/SE to "HMA_" ?
If so, what is the function that is called in the original code called?

Started this thread Reply With Quote
  #4 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,431 since Apr 2013
Thanks Given: 481
Thanks Received: 1,623

tdmtrader,

you might want to take a look at the Multicharts.NET programming guide as it might help you in finding your way around the code: https://www.multicharts.com/trading-software/index.php/Main_Page

The built-in studies using simple moving averages are usually using the AverageFC function.

Regards,

ABCTG


tdmtrader View Post
If I understand you correctly, I could possibly replace the called function in MovAvg_Cross_LE/SE to "HMA_" ?
If so, what is the function that is called in the original code called?


Follow me on Twitter Reply With Quote
  #5 (permalink)
 tdmtrader 
Jacksonville FL
 
Experience: Master
Platform: NinjaTrader
Trading: ES, Currency Futures, Stocks
Posts: 8 since Mar 2011
Thanks Given: 12
Thanks Received: 5


ABCTG View Post
tdmtrader,

you might want to take a look at the Multicharts.NET programming guide as it might help you in finding your way around the code: https://www.multicharts.com/trading-software/index.php/Main_Page

The built-in studies using simple moving averages are usually using the AverageFC function.

Regards,

ABCTG

Thanks! I changed the function in the code and it seems to be working.
Now I have another issue that you may be able to help me with? When I plot the Hull MA indicator on the chart (a 5 renko), with a Hull MA setting of 50, it doesn't plot the MA until bar 108. (no previous day's data. starting fresh each day at 09:30 est). What can be causing this? Is there some setting I have wrong? Why doesn't it start plotting the Hull MA on bar 50?

Started this thread Reply With Quote
  #6 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,431 since Apr 2013
Thanks Given: 481
Thanks Received: 1,623

tdmtrader,

great. In the spirit of the futures.io community you might want to consider posting the code to help others, too.

What you experience sounds like it's caused by the "maximum number of bars back" that a study requires to be correctly computed. You can read more about that in the Wiki and the best approach usually is to load more bars to allow for enough history on the chart.

Regards,

ABCTG

Follow me on Twitter Reply With Quote




Last Updated on March 25, 2019


© 2024 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 - Privacy Policy - Downloads - Top
no new posts