@flyfisher This will show you how to count the candles above & below a MA, you'll need this set for all your conditions though.
Posts made by jstap
-
RE: After a sell/buy signal, check the trend in 3 different timeframesposted in Questions & Answers
-
RE: Pending order at stop-lossposted in Questions & Answers
@drewliedadeuce Tee off from the same block creating the buy with the pending sell, and set the open price the same way you have set the SL.
-
RE: [ Help ] Thickness Take Profit Line?posted in Questions & Answers
@gu95ckt8 I am unsure if you can but, you could use pink blocks to get the price level, then draw on top with a draw line block, delete when trade closes.
-
RE: Placing trades at specific price pointsposted in Questions & Answers
@iagnew This should sell at that price point, but will sell at the the spread difference, also this relies on a tick to arrive at the right time, maybe 2 condition blocks one with => connected to one with =<
-
RE: 3 order open and close on different take profitposted in Questions & Answers
@frank-2 This is how to do buys, copy for sells.
-
RE: 3 order open and close on different take profitposted in Questions & Answers
@frank-2 No trade block at top, conditions for placing a trade, 3 x buy/sell teed off from the condition blocks with different settings inside.
-
RE: What do I have to do if I want that after close trade the previous candles do not count?posted in Questions & Answers
@grupodama When a trade closes set a int variable to 0, once per bar add 1 to the variable, before buy/sell check this number is high enough with a condition block, if need be count the losses before setting the variable to 0.
-
RE: After a sell/buy signal, check the trend in 3 different timeframesposted in Questions & Answers
@flyfisher The indicator you add in the my indicator tab on the top of the builder page, MQL files are easier than EX files, either can be used but will likely need buffers that contain the relevent information. As for the trend you will need to decide what is being used for trend, like a moving average for example, this can quite skimpily be checked with a condition block.
-
RE: how can i stop this project from showing there could be loss of data due to type conversionposted in Questions & Answers
@frank-2 Am unsure but try, changing the 1st block for a no trade and replacing the buy/sell blocks to pink add to position block, may resolve problems.
-
RE: "Adjust" take-profit by the amount of the spreadposted in Questions & Answers
@drewliedadeuce : )
-
RE: "Adjust" take-profit by the amount of the spreadposted in Questions & Answers
@drewliedadeuce Save it into the variable like this:

-
RE: "Adjust" take-profit by the amount of the spreadposted in Questions & Answers
@drewliedadeuce The variable for spread should be a double, in adjust if variable is called SPREAD,
-SPREAD will minus spread amount
+SPREAD will add spread amountif the spread records in pips (likely)
-SPREAD pips will minus spread amount
+SPREAD pips will add spread amount -
RE: "Adjust" take-profit by the amount of the spreadposted in Questions & Answers
@drewliedadeuce In market propities you can select spread, put this figger in a variable, you can then use this in a pink block tree, the spread will fluctuate as the market moves though so not sure how this will affect the trade, worth a try though.
-
RE: MAX ORDERSposted in Questions & Answers
@scoopyzam Not sure I fully understand, in check positions & order count, check trade count, you can set max trades to <10, hope this helps.
-
RE: Width of the Trading Window in Pixelposted in Questions & Answers
@volkerhmb Interesting, Good find.
-
RE: Hello how can I draw this vertical line in the linked indicatorposted in Bug Reports
@frank-2 At the top you have indicators, add there, MQL is much easier than the EX file, once added there you can select in blocks using custom indicator option.
-
RE: Close all Buy or Sell positionsposted in Questions & Answers
@rodrigo-ortuzar The blue close block in trading actions will do this, you will likely need a condition to tell the block when to activate.
-
RE: How to Range of Candles in the Candles Section?posted in Questions & Answers
@eren-0 Your close positions should be in a separate tree or above your buy/sell, as for candle touching bolanger band, in a condition block candle high X> upper BB, then your sell will entre a trade, just set the candle ID you want to use, 0 = current, 1 = candle before etc.
-
RE: how can i use pipaway from open price value as take profitposted in Questions & Answers
@frank-2 Not sure what you mean, if you know how many pips for you pips away then do you not know how far for a take profit? give a little more information and maybe an answer can be given.
-
RE: take out price from variableposted in Questions & Answers
@bk7 It would and market properties would give you that price, I just thought he wanted to work off the ZZ high's and lows.