Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information
how to calculate the maximum volume for open a order whit my money...
sample
i have USD$1000 and 100:1 and nolimit for volume in open order...
i need to know
1) maximum lots for open order in EURUSD with this money
2) maximum lots for open order in USDCHF with this money
2) maximum lots for open order in GBPCAD with this money
if you have a code, itīs better...
thanks for your help
__________________
Charles Adriano
---------------------------
sorry, sorry, sorry for my English...
where varRiskPerc is the % you want to put on your trade. ie 2%, then varRiskPerc would be 2. varRiskPerc MUST be a double or the formula will always return 0.
Quote:
Originally Posted by DooMGuarD
hi all...
how to calculate the maximum volume for open a order whit my money...
sample
i have USD$1000 and 100:1 and nolimit for volume in open order...
i need to know
1) maximum lots for open order in EURUSD with this money
2) maximum lots for open order in USDCHF with this money
2) maximum lots for open order in GBPCAD with this money
I want to grab the highest and lowest values of an indicator over an entire chart. A while ago I tried what I thought should have worked, from within an EA, but it didn't.
(Sorry I don't have that attempt now to show you.)
I need to write ea which will put awaitng order and do the following when it triggers:
1. Variables ("buy"/"sell",position1_lots,position2_lots,position3_lot s,entry_price,stoploss,TP1,TP2)
2.Open (buy/sell) trade with 3 positions at (entry_price) with (stoploss).
3.Close position_1 at (TP1) and move stop loss to breakeven for 2 left positions.
4.Close position_2 at (TP2) & let the last one ride or hit breakeven.
I've programmed some indicators but i really dont have much idea how to write this robot.
I'm trying to code in an effective and reliable invisible stoploss, trailing stop and takeprofit into my EAs. So far, my code just looks for the bid/ask to equal the stoploss or takeprofit value. If the price equals that value, then close the trade.
The problem I'm having is that sometimes the price seems to skip. There is no progressive movement of price. How do I then get around that problem? and make an invisible TP/SL which is guaranteed to close the trade where necessary?