NexusFi: Find Your Edge


Home Menu

 





help to convert from thinkscript to ninjascript


Discussion in NinjaTrader

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




 
Search this Thread

help to convert from thinkscript to ninjascript

  #1 (permalink)
amir007
ramat gan israel
 
Posts: 5 since Feb 2015
Thanks Given: 2
Thanks Received: 0

hi , i'm new to ninjascript and want to convert from thinkscript :


hma > max(open[1] ,close)

hma < min(open[1] , close )

thanks

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Cheap historycal L1 data for stocks
Stocks and ETFs
What broker to use for trading palladium futures
Commodities
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
 
  #2 (permalink)
Johnswain
New York
 
Posts: 1 since Sep 2018
Thanks Given: 0
Thanks Received: 1

I am also new to NinjaScript. But it is basically C#. Hope this helps.
Int32 hma = System.Math.Max(Convert.ToInt32(Open[1]), Convert.ToInt32(Close[0]));
Int32 hma = System.Math.Min(Convert.ToInt32(Open[1]), Convert.ToInt32(Close[0]));

Reply With Quote
Thanked by:
  #3 (permalink)
amir007
ramat gan israel
 
Posts: 5 since Feb 2015
Thanks Given: 2
Thanks Received: 0



Johnswain View Post
I am also new to NinjaScript. But it is basically C#. Hope this helps.
Int32 hma = System.Math.Max(Convert.ToInt32(Open[1]), Convert.ToInt32(Close[0]));
Int32 hma = System.Math.Min(Convert.ToInt32(Open[1]), Convert.ToInt32(Close[0]));


thx , will try it

Reply With Quote




Last Updated on August 28, 2020


© 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