• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 7:41pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 7:41pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Printable Version

Similar Threads

How can I calculate the optimal lotSize for 5 trades 4 replies

Close all open trades if current total open lotsize exceeds"X" 0 replies

Lotsize Calculator Indicator for the Trader 4 replies

What lotsize would you choose... 5 replies

Lotsize Question for Experienced Traders 9 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 1
Attachments: LotSize management coding help needed
Exit Attachments

LotSize management coding help needed

  • Post #1
  • Quote
  • First Post: Nov 4, 2016 10:06am Nov 4, 2016 10:06am
  •  vhervatin
  • | Joined Mar 2016 | Status: Member | 102 Posts
Hi Everybody!

I have the function bellow to calculate my LotSize using a U$ risk to loss.
This function works very well with EURUSD, but with for exemplo JPY pairs, the calculation are wrong.

Please, everybody knows how can I fix it?

Attached Image (click to enlarge)
Click to Enlarge

Name: Screenshot1.png
Size: 26 KB


Thanks a lot
  • Post #2
  • Quote
  • Nov 4, 2016 11:00am Nov 4, 2016 11:00am
  •  FerruFx
  • Joined May 2007 | Status: MT4/MT5 EAs/Indicators/Alerts coder | 6,783 Posts | Online Now
You are missing the pip value in your formula.

Lot = risk / SL / pip value

You set a 10 fixed value ... but not all symbols have a 10$ pip value.
MT4/MT5 EAs/Indicators/Alerts coder
  • Post #3
  • Quote
  • Nov 4, 2016 11:03am Nov 4, 2016 11:03am
  •  vhervatin
  • | Joined Mar 2016 | Status: Member | 102 Posts
Quoting FerruFx
Disliked
You are missing the pip value in your formula. Lot = risk / SL / pip value You set a 10 fixed value ... but not all symbols have a 10$ pip value.
Ignored
Yes, I know the problem, but I don't know hot to fix! kkkk
Can you help me?
  • Post #4
  • Quote
  • Nov 4, 2016 11:30am Nov 4, 2016 11:30am
  •  Akh12851
  • | Joined Jan 2013 | Status: Member | 83 Posts
Quoting vhervatin
Disliked
{quote} Yes, I know the problem, but I don't know hot to fix! kkkk Can you help me?
Ignored
May i suggest some reading :
http://www.fxpro.co.uk/trading/calcu...492.1478273106
http://www.investopedia.com/ask/answ...rrencypair.asp

Both have the same information, but explained in a different way (and one of them provides a calculator).

I hope you'll find it useful.

Have a great week-end,
  • Post #5
  • Quote
  • Nov 4, 2016 11:36am Nov 4, 2016 11:36am
  •  FerruFx
  • Joined May 2007 | Status: MT4/MT5 EAs/Indicators/Alerts coder | 6,783 Posts | Online Now
Quoting vhervatin
Disliked
{quote} Yes, I know the problem, but I don't know hot to fix! kkkk Can you help me?
Ignored
The pip value can be found by the function MarketInfo(_Symbol,MODE_TICKVALUE)
MT4/MT5 EAs/Indicators/Alerts coder
  • Post #6
  • Quote
  • Nov 4, 2016 1:27pm Nov 4, 2016 1:27pm
  •  vhervatin
  • | Joined Mar 2016 | Status: Member | 102 Posts
Quoting FerruFx
Disliked
{quote} The pip value can be found by the function MarketInfo(_Symbol,MODE_TICKVALUE)
Ignored
Owwww, tks so much!
1
  • Post #7
  • Quote
  • Last Post: Nov 4, 2016 7:44pm Nov 4, 2016 7:44pm
  •  FerruFx
  • Joined May 2007 | Status: MT4/MT5 EAs/Indicators/Alerts coder | 6,783 Posts | Online Now
Quoting vhervatin
Disliked
{quote} Owwww, tks so much!
Ignored
MT4/MT5 EAs/Indicators/Alerts coder
  • Platform Tech
  • /
  • LotSize management coding help needed
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2021