MQL4 - automated forex trading   /  

Forum

Login | Register | Language: ru cn en
Hundreds of Forex Robots from MetaTrader Market at Your Service

Modification in iexposure

Back to topics list  | 1 2 To post a new topic, please log in or register
avatar
37
d.saravana21 2013.11.01 10:58
 

dear mt4 coders

I would like to get modified iexposure.

the normal i exposure shows average buy or sell price without commission and swap. but i would like to modify the buy or sell price with commission and swaps(look like break even point).

I tried with my knowledge but i didn't get success. kindly some one help me.


with regards

saravana


Analysis: a high-risk bet on the rise of mobile money

Analysis: a high-risk bet on the rise of mobile money

Forming a partnership with a corporate giant can make a huge difference for a fairy small company. The classic example is Microsoft’s partnership with IBM in the 1980s. Once IBM started using Microsoft’s operating system in its early PCs, Microsoft was well on the way to global domination. Last week IBM announced a partnership deal with a UK technology company called Monitise.

avatar
1275
GumRai 2013.11.01 11:04 #
 
What is iexposure?
avatar
2410
deVries 2013.11.01 11:29 #
 
d.saravana21:

dear mt4 coders

I would like to get modified iexposure.

the normal i exposure shows average buy or sell price without commission and swap. but i would like to modify the buy or sell price with commission and swaps(look like break even point).

I tried with my knowledge but i didn't get success. kindly some one help me.


with regards

saravana



calculate profit with commission an swap

for sell + selllotstotal

for buy + buylotstotal

(and if you go further for buy and sell together) then also nettolots calculation ( if profit != 0 and nettolots == 0 then there is no breakevenpoint to calculate )

calculate pointvalue per point

//+-------------------------------------------------------------------------------------------+ 
double  PipValuePerLot(string pair=""){ return(DeltaValuePerLot(pair) * pips2dbl); }
double  DeltaValuePerLot(string pair=""){
    /* Value in account currency of a Point of Symbol.
     * In tester I had a sale: open=1.35883 close=1.35736 (0.0147)
     * gain$=97.32/6.62 lots/147 points=$0.10/point or $1.00/pip.
     * IBFX demo/mini       EURUSD TICKVALUE=0.1 MAXLOT=50 LOTSIZE=10,000
     * IBFX demo/standard   EURUSD TICKVALUE=1.0 MAXLOT=50 LOTSIZE=100,000
     *                                  $1.00/point or $10.0/pip.
     *
     * http://forum.mql4.com/33975 CB: MODE_TICKSIZE will usually return the
     * same value as MODE_POINT (or Point for the current symbol), however, an
     * example of where to use MODE_TICKSIZE would be as part of a ratio with
     * MODE_TICKVALUE when performing money management calculations which need
     * to take account of the pair and the account currency. The reason I use
     * this ratio is that although TV and TS may constantly be returned as
     * something like 7.00 and 0.0001 respectively, I've seen this
     * (intermittently) change to 14.00 and 0.0002 respectively (just example
     * tick values to illustrate).
     * http://forum.mql4.com/43064#515262 zzuegg reports for non-currency DE30:
     * MarketInfo(Symbol(),MODE_TICKSIZE) returns 0.5
     * MarketInfo(Symbol(),MODE_DIGITS) return 1
     * Point = 0.1
     * Prices to open must be a multiple of ticksize */
    if (pair == "") pair = Symbol();
    return(  MarketInfo(pair, MODE_TICKVALUE)
           / MarketInfo(pair, MODE_TICKSIZE) ); // Not Point.
}
 

and you can calculate your level

avatar
2410
deVries 2013.11.01 11:40 #
 
GumRai:
What is iexposure?


It is a indicator showing buys and sells average price totallots each and profits for 8 different symbols

made a indicator based on this you can find at http://www.mql5.com/en/code/10387 EAProfits 1.0

iExposure you can find in some postings of this forum

avatar
37
d.saravana21 2013.11.01 11:59 #
 
deVries:


calculate profit with commission an swap

for sell + selllotstotal

for buy + buylotstotal

(and if you go further for buy and sell together) then also nettolots calculation ( if profit != 0 and nettolots == 0 then there is no breakevenpoint to calculate )

calculate pointvalue per point

and you can calculate your level


dude.. where can i add this code in iexposure?..
avatar
2410
deVries 2013.11.01 12:22 #
 
d.saravana21:

dude.. where can i add this code in iexposure?..


dude ....

do i have to make it ???

where is your attempt ??

hint PipsProfitPerLot = openprofit/PipValuePerLot(Symbol());

...... PipsProfit = PipsProfitPerLot/ lotsopen;

avatar
37
d.saravana21 2013.11.01 12:56 #
 
deVries:


dude ....

do i have to make it ???

where is your attempt ??

hint PipsProfitPerLot = openprofit/PipValuePerLot(Symbol());

...... PipsProfit = PipsProfitPerLot/ lotsopen;


dude... actually i'm not experienced coder.. i just know little bit only..

kindly make the changes in iexposure.mq4 and upload it.


with thanks and regards

saravana
avatar
14121
RaptorUK 2013.11.01 13:00 #
 
d.saravana21:

dude... actually i'm not experienced coder.. i just know little bit only..

kindly make the changes in iexposure.mq4 and upload it.

If you try and do it yourself just think how much you will learn . . . .

avatar
2410
deVries 2013.11.01 13:05 #
 
d.saravana21:

dude... actually i'm not experienced coder.. i just know little bit only..

kindly make the changes in iexposure.mq4 and upload it.


with thanks and regards

saravana


You ask me to do some work for you...

Then if you wanna pay something

you can get this done if you go to Jobs

and open your Job there for me or others

Also there my name as developper deVries

avatar
37
d.saravana21 2013.11.01 13:15 #
 
deVries:


You ask me to do some work for you...

Then if you wanna pay something

you can get this done if you go to Jobs

and open your Job there for me or others

Also there my name as developper deVries


thank you deVries,

You know how simple this is... you ask money for a simple job... good thing... have a great day..


with regards

saravana


avatar
2410
deVries 2013.11.01 13:19 #
 
d.saravana21:

thank you deVries,

You know how simple this is... you ask money for a simple job... good thing... have a great day..


with regards

saravana



this comment makes my day great.....
Back to topics list   | 1 2  

To add comments, please log in or register