[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 793
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
Aren't we opening Buy at Ask price ???????
That's what I wrote: "Buy orders are opened at Ask price".
But on the chart you see the Bid price.
That's what I wrote: "Buy orders are opened at Ask price".
But on the chart you see the Bid price.
Aren't we opening a Buy at Ask ??????? And there cannot be a spread of 60 pips (if you take it after the gap), and if you take it before ... then the spread on the EUR of 325 pips is tantamount to ... :)
your picture does not show points.
your picture doesn't show the points.
I always have both prices on the chart... In the terminal settings I enabled the display of Ask`ts by F8... And corrected a little the previous post about the spread - it can not be.
But the Ask price is not visible in the bars.
About the spread. Is it a five-digit spread? If yes, widened spread on news + slippage = that's 6 full (60 five-digit) pips for you
But the Ask price is not visible in the bars.
About the spread. Is it a five-figure spread? If yes, then extended spread on news + slippage = that's 6 full (60 five-digit) pips
If I understood your problem correctly, you should not be guided by the closing time of the order. You have to start at the beginning of the bar at which the signal to open and the position was opened. What I would do, personally, is the following:
1) create a variable of datetime type where I would enter the value Time[0] if the order is successfully placed;
2) in the init() function, initialize this variable with value "0". I prefer an explicit initialization, since it is more clear when reviewing the code;
3) when conditions for opening a position appear, before sending OrderSend(...) request, compare the value of this variable with the value Time[0] and if they aren't equal, send a request.
4) if the position opened, I would store the value of Time[0] in the same variable.
Thanks for the clarification - but do you think that instead of comparing with Time[0] value, try to give this task before the OrderSend(...) request : check if there is a StopLoss-y close on the current bar? Then I need to input duble StopLoss() function which will work with StopLoss variable I announced? Or it is NOT POSSIBLE as a matter of principle? It is important to me that a new position is not opened on the bar which has caught a loss, even if it matches the parameters of the opening.
extern double Stoploss =1000;
The matter is that the timing factors should be considered last - very often they slip - or rather the interpretation of an order somehow turns out to be different (ambiguous).
But you can't see the Ask price in the bars.
About the spread. Is it a five-figure spread? If yes, then spread widened on news + slippage = that's 6 full (60 five-digit) pips
Also, in my opinion, there may be a "hairpin", subsequently cleaned up :)), but "saved in the memory" of smaller timeframes, which you won't get to...
And the question about testing on the history :
can an Expert Advisor (a simple one!) - ... but not a grid) on the same period of history, with the same parameters, would it give completely different results?
The only thing I did, between these two tests, was to update the quotes archive... and that could have led to such a result!? - then it turns out that the whole story is bullshit!?
Can someone tell me why MathRound() behaves strangely. Large values count, small ones don't...
There is a simple code for increasing values of some variables by 10%:
The calculated values are logged. If all lines except the first one are divided by 10, then this one counts as number 100 and there's no problem with it:
2010.08.11 19:16:20 2009.01.02 10:34 Sergitas_v1.01 EURUSD,M5: Function of calculation: SLs = 11 and TPs = 66, TStartS = 60, TStop.Sell = 20, TStopLastPosS = 60, TStop.SellLP = 25
What is marked in green is what counts in the first line of code.
But if you put division by 100 (as it should be)
... then all lines except the top one don't count at all - the initial values remain, as if they weren't added
ten percent:
2010.08.11 19:41:03 2009.01.02 10:34 Sergitas_v1.01 EURUSD,M5: Function of calculation: SLs = 11 and TPs = 66, TStartS = 30, TStop.Sell = 10, TStopLastPosS = 30, TStop.SellLP = 15
Help me to understand what and where the fuck it is... :)