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
Every man has the right to the left... hee... I'm going to have a bit of fun with this
Ilnar, in the topic Pending Fractal Orders, asked, How to make pending orders on fractals?
I guess Ilnar had some difficulties with fractal price levels. That's why I suggest using my function:
Function FindNearFractal() searches for the nearest fractal of the specified type at the specified symbol, at the given timeframe, and returns its price level. Knowing the price level of the location of the fractal, it is already easy to place an order at that level.
Is it possible for the function to return two values, e.g. also the bar number where the fractal is located, or should I connect another one?
No, it's clear, I'm basically asking.
Function ExistOrdersByLot().
Returns a flag for the existence of an order with the specified lot size. True - order exists (set), False - order doesn't exist (not set). You can limit the list of orders to be checked using the function parameters:
Examples of how to use the ExistOrdersByLot() function.
Attached, as usual, is a working script with the above examples.
GetLotLastOrder() function.
Returns the lot size of the last placed order or -1. You can limit the list of orders to be checked using the function parameters:
Examples of how to use GetLotLastOrder().
Attached here is a traditionally working script with the above examples.
GetOrderOpenPrice() function.
Returns the setting price of the last opened order or 0. You can limit the list of orders to be checked with function parameters:
Examples of how to use GetOrderOpenPrice().
Attached is a perfectly working script with the above examples.