NO TRADE
-
IS THIS CORRECT ?
BECAUSE ITS NOT WORKING
-
Seems to be correct but we cant see the object on chart that you have as condition
-

this is the object draw -
The first thing I notice is that in the condition block the left operand is the bid price, which seems ok, but the right operand is the name of the object. The bid value is always going to be a price and therefore will not cross a text attribute. I would start by changing the Attribute of the object to set 1 (numeric) and the Property to price level 1, which is the price at which the line is placed on the chart.
-
@cpbonzo
Still no trade

-
@josh01 You will have your reason for wanting to use the Bid value on the left, but I use Candle such that the condition passes when the candle crosses a line. This example from a current project:

-
@cpbonzo I tried with the candle as well, but it still didn't open any trade
-
@cpbonzo
take a look at this: https://fxdreema.com/shared/af6GTUjAb
i dont understand whats going on it should work fine but its not working at all -
@josh01 There are a couple of things that occur to me. Firstly, in the example you shared the drawn lines have no name, so theconditions, which related to named lines don't relate to the lines drawn. Secondly, you have the condition placed after once per bar, which means the condition will only be checked at the beginning of the bar (usually) if the candle doesn't cross at that moment then the condition isn't met.
I would suggest trying with the conditions conected after a "No Trade" block, that time the conditions block is running all the time there is no trade, or use the "Pass" block if you want it to run even if there are live trades. Then place the "Once per Bar" block between the condition and the Buy and Sell blocks, this will ensure than when the condition is met a trade is only plced once in that bar even if the candle crosses the line more than once in this time. -
@cpbonzo thanks it works