
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Don't you have (ready and willing to buy)))) the same but to work with excel?
nope, not available... )))
The GetPotentialLossInCurrency() function returns the total potential loss of open positions in the deposit currency. The calculation is performed based on the opening price of the position and StopLoss price level. If StopLoss is not set for any position, this function returns the current equity of the trading account.
GetPotentialLossInCurrency() function accepts the following parameters:
Attached is a script to test the GetPotentialLossInCurrency() function.
Hello Igor. Kudos to you for your set of very useful features.
Can I ask you for some help... I want to make some sort of partial locker. But so far I don't know how to arrange it. The idea is like this :
There are 4 - orders let's say -200$ -175$ -150$ and -25$ and there are 5+ orders totaling +400$
If 400 > -200+-175 but less than -200+-175+-150 then close 5 plus and minus orders -200 -175, that is 2 orders with a loss of more to less.
this example is rather crude but I think I have got the idea...
The first problem is that I need something to write them down. (I don't really understand Array) or find some other way.
The 2nd problem follows from the first one. Suppose I got los[x] with lots from 4 different orders... should I load lots ( los[x]) into a module that will search for tiket according to price or do I add 1 (los[price]) and 2 (los2[tiket]) while sorting lots?
Maybe you can point me in a place where you can do this or teach me something I can't =)
Probably every trader sooner or later starts to calculate the number of pips remaining before the deposit is lost. The calculation is simple: we take the money, divide it by the number of lots in the market, by the point value and get the answer we are looking for. This is exactly what my new function ReserveDepositInPoint() does, it takes the following parameters:
The ReserveDepositInPoint() function handles opposing positions correctly, namely, it calculates the difference between Sell and Buy lots and uses exactly this difference in the calculations. The calculations are based on equity, i.e. it is supposed that the stopout is 100%. Swaps, taxes and commissions are not considered.
Attached is an Expert Advisor to check ReserveDepositInPoint()function .
Function SetFibo().
This function sets the OBJ_FIBO object Fibonacci levels on the current chart.
GetLastThreeExtremumZZ() function.
Performs search for the last three extrema of the ZigZag and returns their values: bar number and price level for each extremum. All this data is contained in a two-dimensional array which is passed as a parameter to the function. Here is the entire list of the function parameters:
Attached is a script to test GetLastThreeExtremumZZ() function.
The NumberOfOrdersByPrice() function.
Returns the number of orders set at a given price level. You can limit the list of orders to be checked with function parameters:
The NumberOfLastLossPosFromDate() function.
This function returns the last series of losing positions (number in a row) closed since a certain date. A more accurate selection of positions to be taken into account is specified using external parameters:
The ClosePosExceptTicket() function.
This function closes all positions at the market price except the one with the passed ticket. A more accurate selection of positions to be closed is specified by external parameters:
GetChangeBalance() function.
Returns non-trading (deposits, withdrawals, internal transfers, interest accruals, bonuses) balance changes from a certain date passed as a parameter.