fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. General Melchett
    3. Posts
    • Profile
    • Following 0
    • Followers 1
    • Topics 30
    • Posts 79
    • Best 6
    • Controversial 0
    • Groups 0

    Posts made by General Melchett

    • Test whether x candles have been touching moving average line in a row

      Hi all

      I would like to send myself a notification when an EMA line has touched x number of candles in a row. Is there a way to do this with fxdreema?

      I am guessing it is possible with 'indicator moves with' block but I am not sure how to configure it. Can anyone offer any advice?
      0_1649243857456_Screenshot 2022-04-06 141624.png

      posted in Questions & Answers
      General Melchett
      General Melchett
    • Right aligned or right justified text

      Hi peeps

      How can I make some text appear right justified? As far right as possible but justified?

      This text below is left justified. I want it right justified to appear on the other side of the chart
      0_1648899722283_Screenshot_20220402_144105.jpg

      Also, if possible, if text could stay right justified as new candles get added to the chart..!

      posted in Questions & Answers
      General Melchett
      General Melchett
    • Script to select all horizontal lines on chart

      I would like to select all horizontal lines on one chart (so that the small white box appears on either end).

      I know I need to use 'OBJPROP_SELECTED' but this isn't referenced much in this forum so I am not sure how I could use it.

      I basically want to select all horizontal lines - if they are already selected, then do nothing. If they are not selected, then make them selected (small white box at either end).

      posted in Questions & Answers
      General Melchett
      General Melchett
    • RE: Possible to apply script only to drawings in current timeframe?

      I figured it out.

      I only need to change the default colour of the horizontal line. So I first markup weekly (in Violet) and set script to change only that colour. Then I move to D1. When I draw new lines they are in Violet as the W1 markup has already been changed by the script. And so on.

      posted in Questions & Answers
      General Melchett
      General Melchett
    • Possible to apply script only to drawings in current timeframe?

      Here's my scenario:
      I am using Soft4FX backtesting software in MT4 to practice my manual trading. It uses offline charts with different timeframes in their own chart tabs. I would like a script to modify horizontal lines so I can identify which timeframe they belong to.
      For instance, in H4 I make a horizontal support line thick and black. (You can copy objects to other timeframes, so I do this with Soft4FX).
      I move to H1 and make some more horizontal lines but in a different colour.

      Bearing in mind the previous lines I created will have been copied to H1, I want a script to only apply to the lines I have created in H1, and not ones that have been created in other TFs. Might this be possible?

      posted in Questions & Answers
      General Melchett
      General Melchett
    • RE: Trade Profit/loss at certain price level

      Thank you @l-andorrĂ  , just the hint I needed.

      If anyone is interested you can set price per pip variable with this calculation
      0_1644433956892_2022-02-09 21_11_10-Clipboard.png

      posted in Questions & Answers
      General Melchett
      General Melchett
    • RE: Bucket of trades on init not firing

      Problem solved, my bad: I set group mode to 'All' and now the EA performs as expected.

      posted in Questions & Answers
      General Melchett
      General Melchett
    • RE: Bucket of trades on init not firing

      This is weird. Even if I put an 'if trade' block, in oninit or on tick, it returns false, even when 2 trades are running??

      https://fxdreema.com/shared/RChf9BtGc

      posted in Questions & Answers
      General Melchett
      General Melchett
    • RE: Bucket of trades on init not firing

      I put an 'if trade' block before the bucket, the argument fails (I know this as I put a log message to print).

      So the EA believes there are no trades running (there are 2 open on the same chart/pair! It's a demo account).

      I now have to figure out in what instance the EA would assume no trades are running (where there are).

      posted in Questions & Answers
      General Melchett
      General Melchett
    • RE: Bucket of trades on init not firing

      Tried normalizing...same. No difference. Still doesn't fire bucket block...

      posted in Questions & Answers
      General Melchett
      General Melchett
    • Bucket of trades on init not firing

      Hi there

      I have a bucket of trades block in oninit but the block doesn't fire when loaded. I have tested but with some buy/sell blocks before it and it works perfectly.

      And when I say the bucket of trades block doesn't fire, I mean I put a log message on both true/false outputs and nothing happens.

      Anyone shed any light on this?

      https://fxdreema.com/shared/otQ1Hjorb

      posted in Questions & Answers
      General Melchett
      General Melchett
    • Trade Profit/loss at certain price level

      Is it possible to calculate an open trade profit/loss at a certain price? So if price reaches level 'a' I can lookup that profit will be 'b'?

      posted in Questions & Answers
      General Melchett
      General Melchett
    • RE: Loop variables

      Bah, ok. I'll have to do it all one by one then. I'll only have a max of 3 to do so in both directions that's 6. Better than nothing I suppose. Thanks for the help!

      posted in Questions & Answers
      General Melchett
      General Melchett
    • Loop variables

      I want to loop through trades (say trades a, b and c) and assign individual trade values to variables.

      Problem is the same variable name will be overwritten by the next loop? So how do I ensure the variable name changes each time the loop happens?

      I tried appending a number to the variable name (eg 'stop_loss_ + loop_number' but couldn't get it working?

      posted in Questions & Answers
      General Melchett
      General Melchett
    • Wingding Lookup Image Broken

      Under 'Draw Arrow' block

      0_1637222618670_48a71c70-7111-418c-ad67-b20624d51489-image.png

      posted in Bug Reports
      General Melchett
      General Melchett
    • RE: Identifying Candle Pattern (Part 1!)

      @jstap Great idea, thank you!

      posted in Questions & Answers
      General Melchett
      General Melchett
    • Identifying Candle Pattern (Part 1!)

      Hi everyone, I am trying to automate the identification of a specific candle pattern. I had a go at this last night but couldn't think of a way to do it. I had limited success with the impulse block as it doesn't identify specifically a break of a certain amount of candles.

      0_1636534106456_1.png

      So in the picture I am trying to identify the impulsive 3 candle break (I need to identify similar setups of at least 2 candles). How could I identify this?

      I was thinking maybe a (minimum) 2 bull bar break with (total) candle length a minimum of 3x the average candle size over the last x candles period. But I couldn't find anything that could give me the average candle range over the past x candles. Anyone have any ideas?

      posted in Questions & Answers
      General Melchett
      General Melchett
    • Is there a function that returns the pip decimal places?

      I've used the pip size setting in project options to set a custom pip size (for indices at my broker, eg '0.01 = 0.1'), but is there a way of accessing this within the EA so I can correctly calculate stuff like pip difference in price? As all my calculations are wrong, and if I correct them they will all break if I change symbol to one with different decimal places!

      posted in Questions & Answers
      General Melchett
      General Melchett
    • How do I find out my averaged (virtual) TP for a group of trades and show this price as a line on the chart?

      I'm coding a grid system and as part of it I am using the functionality to use a trailing stop for a group of trades. This works fine, however it would be nice to know where the SL/TP is for the basket of trades, and even better to have it shown on the chart.

      At the moment the EA only shows the first trade TP. I would like the EA to show the TP level that price needs to get to before it closes the trades.

      Can anyone help

      posted in Questions & Answers
      General Melchett
      General Melchett
    • RE: Weekday filter constants

      I know this is an old topic but I went around in circles thinking the reply above was valid.

      It is not correct: the boolean function DOES work and is expected for the weekday.

      So Tuesday boolean value of 'false' means 'Reject'

      posted in Questions & Answers
      General Melchett
      General Melchett
    • 1
    • 2
    • 3
    • 4
    • 3 / 4