NexusFi: Find Your Edge


Home Menu

 





How to use i_getplotvalue and i_setplotvalue to compare two signals on chart?


Discussion in MultiCharts

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




 
Search this Thread

How to use i_getplotvalue and i_setplotvalue to compare two signals on chart?

  #1 (permalink)
cestnoir
New York, NY
 
Posts: 6 since Mar 2016
Thanks Given: 0
Thanks Received: 0

Hi, how would I go about using i_getplotvalue (or i_setplotvalue) to compare two signals as they go about plotting a chart throughout the trading day and have rules to execute a buy or sell? I haven't been able to find much example code or documentation on using these two functions and any help/advice would be much appreciated. Thank you!

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Cheap historycal L1 data for stocks
Stocks and ETFs
Trade idea based off three indicators.
Traders Hideout
How to apply profiles
Traders Hideout
ZombieSqueeze
Platforms and Indicators
 
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

cestnoir,

I am afraid, but it's not really clear to me what you are trying to do exactly or why i_getplotvalue / i_setplotvalue would be needed.
The Multicharts wiki clarifies and gives an example on how to use these two reserved words and this should be enough to get you going.

Regards,

ABCTG

Follow me on Twitter Reply With Quote
  #3 (permalink)
cestnoir
New York, NY
 
Posts: 6 since Mar 2016
Thanks Given: 0
Thanks Received: 0


I wanted to use i_getplotvalue to compare two signals, where if one signal was greater than the other then for a trade to be executed or have some kind of indicator placing a colored dot for example but I was not sure how to get the index portion working on the function. I am not sure how to go about populating the index ->

The example give is: plot1(i_getplotvalue(111), "MaxIDDrawdown");

Where 111 is the index value. But I would like this function to be constantly running as the two signals are turned on during the trading day so the index would be constantly changing no?

Reply With Quote
  #4 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

You need to look into i_setplotvalue for setting the value that you want to receive with i_getplotvalue. They can only work in conjunction. One way to do it would be sending strategy values to an indicator.

I don't understand why the index would change in the example you gave, it should never change, but remain constant. Think of it like a frequency you use for broadcasting something. If you'd constantly change your frequency, your listeners (the indicators) would have a hard time tuning in.

Regards,

ABCTG

Follow me on Twitter Reply With Quote




Last Updated on April 11, 2016


© 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