NexusFi: Find Your Edge


Home Menu

 





Filling an array with all trades done


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one onava with 2 posts (0 thanks)
    2. looks_two Lampert with 2 posts (1 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 Big Mike with 1 posts (1 thanks)
    1. trending_up 2,338 views
    2. thumb_up 2 thanks given
    3. group 2 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread

Filling an array with all trades done

(login for full post details)
  #1 (permalink)
onava
London/England, Zurich/Switzerland
 
Posts: 20 since Apr 2012
Thanks Given: 2
Thanks Received: 1

Hi,

Im trying to fil an array with all trades done but cant get it to load. I get an an error array requires a variable.. can anyone help

heres my code

For i = 0 to totaltrades Begin
fillarray(tradeArray[i],positionprofit[i]);
End;

Print(tradearray);

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Looking for an MQL4 MetaTrader programmer/coder
The Elite Circle
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
ZombieSqueeze
Platforms and Indicators
Request for MACD with option to use different MAs for fa …
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
33 thanks
Daytrading ES & NQ
32 thanks
Battlestations: Show us your trading desks!
30 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Retail Trading As An Industry
25 thanks

(login for full post details)
  #3 (permalink)
 
Lampert's Avatar
 Lampert 
Calgary, Canada
 
Experience: Intermediate
Platform: Multicharts
Broker: IB, IQFeed
Trading: GC
Posts: 76 since Nov 2011
Thanks Given: 73
Thanks Received: 142


onava - I assume you are coding in EasyLanguage? I am not sure exactly what you want but here are a few comments and a suggestion:
  • i is a reserved word meaning "open interest"
  • if you want positionprofit from previous positions, you need to use round brackets
  • fillarray is not an EasyLanguage function
If you just want to print the position profits, you can use this:
 
Code
if date = 1120426 and printonce = 0 then begin
	printonce = 1 ;
	For value1 = 0 to totaltrades Begin
		Print (positionprofit(value1));
	End;
end ;
Len

Reply With Quote
The following user says Thank You to Lampert for this post:
(login for full post details)
  #4 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Posts: 50,248 since Jun 2009
Thanks Given: 33,111
Thanks Received: 101,368

There is Fill_Array(ArrayName,Value) in MultiCharts.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor


For the best trading education, watch our webinars
Searching for trading reviews? Review this list


Lifetime Elite Membership: Sign-up for only $149 USD
Receive exclusive offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
The following user says Thank You to Big Mike for this post:
(login for full post details)
  #5 (permalink)
 
Lampert's Avatar
 Lampert 
Calgary, Canada
 
Experience: Intermediate
Platform: Multicharts
Broker: IB, IQFeed
Trading: GC
Posts: 76 since Nov 2011
Thanks Given: 73
Thanks Received: 142

Thanks Mike. I have an array-phobia.

Len

Reply With Quote
(login for full post details)
  #6 (permalink)
onava
London/England, Zurich/Switzerland
 
Posts: 20 since Apr 2012
Thanks Given: 2
Thanks Received: 1

Will try it out.. thanks.


Lampert View Post
onava - I assume you are coding in EasyLanguage? I am not sure exactly what you want but here are a few comments and a suggestion:
  • i is a reserved word meaning "open interest"
  • if you want positionprofit from previous positions, you need to use round brackets
  • fillarray is not an EasyLanguage function
If you just want to print the position profits, you can use this:
 
Code
if date = 1120426 and printonce = 0 then begin
	printonce = 1 ;
	For value1 = 0 to totaltrades Begin
		Print (positionprofit(value1));
	End;
end ;
Len


Reply With Quote





Last Updated on April 27, 2012


© 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