Easy/PowerLanguage Equiv. of ValueWhen and LastValue - MultiCharts | futures io social day trading
futures io futures trading


Easy/PowerLanguage Equiv. of ValueWhen and LastValue
Updated: Views / Replies:1,040 / 4
Created: by OZ Trade Attachments:0

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 don’t 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
 
Thread Tools Search this Thread
 

Easy/PowerLanguage Equiv. of ValueWhen and LastValue

  #1 (permalink)
Trading Apprentice
Brisbane
 
Futures Experience: Intermediate
Platform: MC
Favorite Futures: Futures, Forex, Equities
 
Posts: 2 since Oct 2013
Thanks: 0 given, 0 received

Easy/PowerLanguage Equiv. of ValueWhen and LastValue

Looking for the equivalent of ValueWhen() and/or LastValue() from Metastock in Easy/PowerLanguage for TradeStation/Multicharts

Any help on this would be much appreciated, I have wasted many hours trying to work around it.

Thanks,

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

You can reference previous bars values in Multicharts and TradeStation like this:

MyValue[x]

where MyValue is the variable you are working with and x is the number of bars back from the current bar (0 = current bar).

I don't know about ValueWhen() and LastValue() in Metastock, but I hope the above helps you.

Regards,

ABCTG


OZ Trade View Post
Looking for the equivalent of ValueWhen() and/or LastValue() from Metastock in Easy/PowerLanguage for TradeStation/Multicharts

Any help on this would be much appreciated, I have wasted many hours trying to work around it.

Thanks,


Reply With Quote
 
  #3 (permalink)
Trading Apprentice
Brisbane
 
Futures Experience: Intermediate
Platform: MC
Favorite Futures: Futures, Forex, Equities
 
Posts: 2 since Oct 2013
Thanks: 0 given, 0 received

More Info


Thanks for the suggestion, [x] is something I most certainly already use, it is specific to 'number of bars back or forward' from the current calc. bar though.

Some more info on what I'm looking for:

ValueWhen(Nth, Expression, Data Array)

Nth _ Is the number of occurrences, of the `expression', you wish to refer back when obtaining the value of the selected data array.

Expression _ The technical condition that you are going back through the data to search for and the `N' will dictate how many occurrences you count back.

Data Array _ On the period that `Expression' is found `N' times ago, it is the value of this data array that is returned.

LastValue( Data Array)

This function will always return the last value of a data array. Put another way, the function:

LastValue ( close )

returns the closing price for the last day of data available. By the same token, the function:

LastValue(MACD())

returns the MACD has on the last day of data available.

The same value is returned no matter when the lastvalue() function is calculated. If the Data Array is undefined for any reason, LastValue will return a 0.

Since the function, in effect looks into the future, it is not acceptable for most custom indicators. It is; however, very beneficial for things likes
pattern recognition.

-------------------------------------------

Effectively I need to refer to the nth occurrence of a specific expression value in the past and return an OHLC value for that occurrence.. also to be able to refer to the last value (value at most recent bar) of a particular expression from any previous bar on the chart.


Last edited by OZ Trade; October 6th, 2013 at 08:40 PM.
Reply With Quote
 
  #4 (permalink)
Trading for Fun
turin italy
 
Futures Experience: Advanced
Platform: metatrader multichart
Favorite Futures: futures
 
Posts: 96 since May 2013
Thanks: 43 given, 4 received

Hello,

Amibroker
x = valuewhen(condition,y);

Multicharts
if ( condition ) then
x = y;

Bye

Reply With Quote
 
  #5 (permalink)
Elite Member
Colorado
 
Futures Experience: Advanced
Platform: MultiCharts
Broker/Data: IB & Iqfeed
Favorite Futures: ES , CL
 
sptrader's Avatar
 
Posts: 533 since Apr 2010
Thanks: 1,080 given, 668 received

" CountIf " function may help, it counts the number of times something happens..

Reply With Quote

Reply



futures io > > > > Easy/PowerLanguage Equiv. of ValueWhen and LastValue

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
Powerlanguage and Multi time frames Laurent EasyLanguage Programming 10 December 2nd, 2016 03:54 AM
Money management code in Multicharts PowerLanguage moses MultiCharts 1 March 18th, 2013 07:34 AM
Powerlanguage / Multicharts Strategy Stoploss code Wouter Elite EasyLanguage Automated Trading 10 September 17th, 2012 03:58 PM
PowerLanguage & EasyLanguage How-To's Gadgetman EasyLanguage Programming 14 March 14th, 2012 09:42 PM
LA Times: "Foreign currency trading is easy — an easy way to lose money" shodson News and Current Events 7 April 4th, 2011 10:20 AM


All times are GMT -4. The time now is 03:39 AM.

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-16 in 0.11 seconds with 19 queries on phoenix via your IP 54.196.201.241