fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. roar
    3. Posts
    • Profile
    • Following 0
    • Followers 184
    • Topics 35
    • Posts 2406
    • Best 422
    • Controversial 6
    • Groups 0

    Posts made by roar

    • RE: Error message when compiling

      @swissi this is just a wild guess, but the warning maybe considers the difference between double and int data types...
      Try changing your double variable to int, maybe it does the trick
      0_1600884060401_d7f5bcd7-a567-4f70-bb15-5af48387ab65-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: Error message when compiling

      @swissi
      "possible loss of data due to type conversion" is not an error, just a warning.

      posted in Questions & Answers
      roar
      roar
    • RE: How to set/check a time stamp or candle ID

      @ikarus_ said

      Just one thing from the moment the candle close was above the tenkan sen Line it should always close above.

      So the condition is "each of last 30 candles are above tenkan-sen"?
      Then use the loop to try and find a candle that doesnt meet the condition -> now set your tracking variable to FALSE. The logic flow continues to next stage only if the variable keeps its TRUE value throughout the whole loop. Hope you get what I mean...

      Also the Loop conditions have to always be on Tick right?

      Not necessary.. As long as you can activate the loop (using OnTick, OnTrade, OnInit, whatever), it will surely do its thing.

      posted in Questions & Answers
      roar
      roar
    • RE: How to set/check a time stamp or candle ID

      @ikarus_ all right, here is an example of two loops. The example goal is to first find some candle above tenkan-sen line in the last 30 candles, and then find some candle below moving average in the last 30 candles.

      There is probably something weird-looking here, just ask
      https://fxdreema.com/shared/iiAq2ApF
      0_1600859926061_c2517f87-6c26-4c01-8ddb-8623ce0368d3-image.png
      0_1600859935219_d6045917-388c-4979-9db0-cdb171514c31-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: How to set/check a time stamp or candle ID

      @ikarus_ you need a loop, every programmer's best friend.
      And to operate this loop, you have to use variables.
      Are you familiar with variables?

      posted in Questions & Answers
      roar
      roar
    • RE: work in one per tick

      @khalids222 so the EA will buy every new tick, as long as current candle is bullish?
      Otherwise my example should be pretty close

      posted in Questions & Answers
      roar
      roar
    • RE: EA dump

      @kizerage212 hedge accounts will not close the trades. The system relies on the netting method - new buys close old sells and vice versa. There is no other exit method specified.

      posted in Tutorials by Users
      roar
      roar
    • RE: work in one per tick

      @khalids222 I dont understand what you mean by stopping or reversing from buy to sell, how should the EA know the turning point...

      posted in Questions & Answers
      roar
      roar
    • RE: work in one per tick

      @khalids222 the system does stop opening when price comes back i.e. it only trades when the candle makes a new extreme

      posted in Questions & Answers
      roar
      roar
    • RE: Need help with Breakeven and Trailing Stop at a certain Percentage of Profit

      @biztet @danzadrummer that is so kind, thank you

      posted in Questions & Answers
      roar
      roar
    • RE: work in one per tick

      @khalids222 I think something like this is close to what you want:
      https://fxdreema.com/shared/zbecete9e

      There's going to be problems, though.

      • Brokers have a limit of total open orders, usually 150-200
      • Most of price movement is consolidation in place, meaning you will have lots of both buys and sells in loss.

      I do get a lot of requests, and I have to postpone and then I forget some of them...

      posted in Questions & Answers
      roar
      roar
    • RE: Weighted average price of bucket of trades

      @bhovens not a very simple one, but I got a method:
      https://fxdreema.com/shared/ZlIOMdTvc

      posted in Questions & Answers
      roar
      roar
    • RE: Need help with Breakeven and Trailing Stop at a certain Percentage of Profit

      @danzadrummer weird. Does the trailing stop look like this
      0_1600602453864_d5824c0c-6904-4289-ba43-c384bc7ac8a3-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: EA dump

      @ramisignals said in EA dump:

      This one with no SL it will margin the account

      As I said, its for a netting type account. No need for SL (or TP), as long as your lot amounts are sensible.
      https://hercules.finance/faq/what-is-netting-system-on-mt5-trading-platform-how-does-it-work/

      posted in Tutorials by Users
      roar
      roar
    • RE: EA dump

      Here's the project: https://fxdreema.com/shared/YtCrSX5qb

      This only works on mt5 with netting accounting.
      I will not convert this to mt4, or even mt5 with hedging accounting, because:

      • I'm feeling lazy
      • I really recommend you to use mt5 with netting. Very often someone asks here in forum to calculate average entry, or close buys and sells together. Netting account does this automatically -> your EA developing is much more simple, multiplying your chances of success.

      I'll continue to add some filters or otherwise fine-tune this system, may inform here or not.

      posted in Tutorials by Users
      roar
      roar
    • EA dump

      A simple scalping EA idea in case anyone is interested.

      Lets compare the difference between 13-ATR and 13-Standard Deviation on EURUSD M30 chart.
      When STD is significantly below ATR, market is making large candles but not moving anywhere.
      Here's our opportunity to switch to 5-minute chart and buy/sell using fast RSI.
      0_1600545285670_b72bc966-b581-465b-b58d-d1d36379f703-image.png
      0_1600545296426_bc0b6c66-52f7-4fd9-9bb5-df06fd377747-image.png
      Backtest from 2007 yielded surprisingly good result for such a basic system.
      0_1600545373651_5fc1908f-9f52-44e7-8f81-8772c53f6995-image.png

      posted in Tutorials by Users
      roar
      roar
    • RE: Need help with Breakeven and Trailing Stop at a certain Percentage of Profit

      @biztet I did a quick backtest, seems to work - go ahead

      posted in Questions & Answers
      roar
      roar
    • RE: Need help with Breakeven and Trailing Stop at a certain Percentage of Profit

      @l-andorrĂ  @biztet lol đŸ˜„

      @danzadrummer We can use mql4 function AccountBalance() in the trailing stop settings, maybe that does the trick:
      https://fxdreema.com/shared/0R74W0tMc

      posted in Questions & Answers
      roar
      roar
    • RE: Description or constant.

      You can insert constants to drop-down menus just like plain fields, by right-clicking:
      0_1600455401295_3494ce39-259e-441f-ad18-497e78637169-image.png
      However, the drop-downs are usually some specific data type, so you have to do some googling
      https://www.google.com/search?q=mql4+color+datatype&oq=mql4+color+datatype&aqs=chrome..69i57j33l3.9319j0j7&sourceid=chrome&ie=UTF-8
      ->
      https://docs.mql4.com/basis/types/integer/color
      ->
      https://docs.mql4.com/constants/objectconstants/webcolors
      ->
      The datatype is integer, and the colors have their own codes, clrRed for example.
      0_1600455542786_7a6d2b4c-c43b-4a17-aafe-1478156b28ea-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: example: For each trade

      @bhovens said in example: For each trade:

      close the first and last trade, when profit is 5 for both first and last trade

      What do you mean, exactly?
      First trade profit + last trade profit >= 5 ?

      Currently there is no AND logic, the EA just closes first trade OR last trade whenever one of them is $5 in profit.

      If you do want this AND logic, here's a method to do it with two variables; firstprofit and lastprofit:
      https://fxdreema.com/shared/yoGXk7TYd

      posted in Tutorials by Users
      roar
      roar
    • 1
    • 2
    • 42
    • 43
    • 44
    • 45
    • 46
    • 120
    • 121
    • 44 / 121