For different underlyings I can have a different value for the minimum lot-size/lot-step, which I must trade. For example for MBT on EURUSD I have a minimum lot size of 0.01 lot.
Simple question:
Is there a way to find out about this broker/underlying specific value with a power language instruction, or do I need to set this value manually?
Minimum Lot Step
- JoshM
- Posts: 2195
- Joined: 20 May 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Re: Minimum Lot Step
Not that I'm aware of (but I hope I'm wrong).Simple question:
Is there a way to find out about this broker/underlying specific value with a power language instruction, or do I need to set this value manually?
Your best bet would probably to create a Function for this, that holds the minimum order size, and calling that function when needed. That would save you from having to manually change every script if you change broker/instrument and get a different minimum size.
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: Minimum Lot Step
You cannot place a trade with lot size less then 1. Only integer numbers can be used.
Unfortunately you can't find out what is lot size of an account in your script. Depending on the type of your account (micro/mini/standard) 1 qunatity = 1 lot (micro/mini/standard).
Unfortunately you can't find out what is lot size of an account in your script. Depending on the type of your account (micro/mini/standard) 1 qunatity = 1 lot (micro/mini/standard).