if positionprofit > 1% of trade value? - futures io
futures io futures trading



if positionprofit > 1% of trade value?


Discussion in EasyLanguage Programming

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




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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

(If you already have an account, login at the top of the page)

 
Search this Thread
 

if positionprofit > 1% of trade value?

(login for full post details)
  #1 (permalink)
vancouver canada
 
Experience: Intermediate
Platform: multicharts, ninjatrader
Trading: forex
 
toddma's Avatar
 
Posts: 53 since Jul 2012
Thanks: 14 given, 6 received

Hi - I'm a little bit stuck here.
I have absolute values in my code such as:
if positionprofit > 1000 and...
however, when I run this code on something like pesos or yen I believe it is calculating positionprofit in that currency. So the code will execute when it shouldn't.

How would I make this relative? example:
"if positionprofit > (1% of trade value)"...

Thanks in advance.

Started this thread Reply With Quote

Can you help answer these questions
from other members on futures io?
Second Entry Indicator (Looking for testers/feedback)
NinjaTrader
What blockvolume is visible? - order processing
NinjaTrader
ZigZag with Depth and Backstep
EasyLanguage Programming
COTbase for quant trading?
Elite Algorithmic NinjaTrader Trading
Automatic pattern research with NT
Elite Algorithmic NinjaTrader Trading
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Selling Options on Futures?
109 thanks
Battlestations: Show us your trading desks!
108 thanks
Rank your Futures vs Stocks trading priority
55 thanks
Want your NinjaTrader indicator created, free?
27 thanks
Whats this confusion with margins?
21 thanks
 
(login for full post details)
  #3 (permalink)
vancouver canada
 
Experience: Intermediate
Platform: multicharts, ninjatrader
Trading: forex
 
toddma's Avatar
 
Posts: 53 since Jul 2012
Thanks: 14 given, 6 received


Sorry - that question was in reference to Multicharts

Started this thread Reply With Quote
 
(login for full post details)
  #4 (permalink)
Dartmouth NS
 
Experience: Intermediate
Platform: MC, MC.Net, NT, TWS
Broker: IB / IQFeed / Kids
Trading: Forex, stocks
 
bnichols's Avatar
 
Posts: 638 since Feb 2010
Thanks: 64 given, 460 received

Relatively new to MC myself so don't know most of the in's and out's but one way to convert to percent might be

Value1 = PositionProfit / (AvgEntryPrice * CurrentContracts) * 100;

assuming PositionProfit and AvgEntryPrice are reported in the same currency :-/

Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #5 (permalink)
vancouver canada
 
Experience: Intermediate
Platform: multicharts, ninjatrader
Trading: forex
 
toddma's Avatar
 
Posts: 53 since Jul 2012
Thanks: 14 given, 6 received

That looks like a good solution. I've improvised myself and used:

if positionprofit > InitialCapital*.01 - however, I need to ensure that initialcapital is in the currency that profits are reported in - so I may be trading size 100k but if I'm trading yen then I set the initialcapital @ 8,300,000... this seems* to work... not a great solution though...

Thanks for your thoughts.

Started this thread Reply With Quote


futures io Trading Community Platforms and Indicators EasyLanguage Programming > if positionprofit > 1% of trade value?


Last Updated on November 23, 2012


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 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