fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. josecortesllobat
    3. Posts
    J
    • Profile
    • Following 2
    • Followers 20
    • Topics 34
    • Posts 507
    • Best 41
    • Controversial 1
    • Groups 0

    Posts made by josecortesllobat

    • RE: ID 1 = 50% of ID 2

      You can use as many formula blocks as you need to achieve what you want.

      By definition,

      CandleMiddlePrice = (HIGH - LOW)/2

      If you want to calculate that price level for any candle going backwards, you just need to type the candle´s ID number for which you want to know its MiddlePrice by following the ID rules given by fxDreema at the formula´s block Candle ID field.

      CandleMiddlePrice [0] = (HIGH [0] - LOW [0])/2 -> MiddlePrice of the newest candle
      CandleMiddlePrice [1] = (HIGH [1] - LOW [1])/2 -> MiddlePrice of the previous candle
      .
      .
      .
      CandleMiddlePrice [n] = (HIGH [n] - LOW [n])/2 -> MiddlePrice of the n-est candle

      posted in Questions & Answers
      J
      josecortesllobat
    • RE: Adding condition of spaced moving averages

      0_1550529988425_4ca75abd-7648-41b5-8977-cea47dfe974f-image.png

      posted in Questions & Answers
      J
      josecortesllobat
    • RE: Buy if previous Buy was at higher spot

      You have a pink block called "For each Trade" that could work for what you are asking

      https://fxdreema.com/examples#Loop-(For each...)

      "When you run this block once, it can activate it's orange output multiple times, depending on how many trades are present.
      For each iteration the block loads a given trade, and this trade can be manipulated using other pink blocks like "modify stops" or "close"

      After this block you can connect a "Condition" block where you can get different properties of the trade/s.

      0_1550523334518_4a1e8c60-9ad0-4ff2-ad7e-d0b37b3110c7-image.png

      Then, you can build

      For each trade ->If Price (Ask, Bid, Mid or other PriceLevel) < (in loop) OpenPrice ---> Do something

      posted in Questions & Answers
      J
      josecortesllobat
    • RE: ID 1 = 50% of ID 2

      0_1550475172618_37db727c-55d9-4f07-90d6-4e4a61913778-image.png

      Previous Candle is ID = 1

      You're taking the CandleOpen[2] and CandleClose[1]. It is not the CandleMiddleValue of the previous candle [1].

      posted in Questions & Answers
      J
      josecortesllobat
    • RE: Scale conversion.

      I am not sure if you will get what you want but it might be possible by using a formula like the RSI calculation one

      0_1550388836846_b73a9f72-3105-400a-88ca-a7f8f2af13fb-image.png

      EURUSD = 1.15489
      EURGBP = 1.32874
      EURCHF = 1.12367
      EURJPY = 1.159

      FOREX.EUR = 1.19158

      FOREX.EUR_100 = 100 - (100/(1+1.19158)) = 54.37

      posted in Questions & Answers
      J
      josecortesllobat
    • RE: ID 1 = 50% of ID 2

      0_1550388597940_8fb7d7ea-420d-44b3-872a-caadfae3b8a0-image.png

      posted in Questions & Answers
      J
      josecortesllobat
    • RE: Profit trailing

      This might be work (not tested)

      0_1550305205541_66bc204c-7256-48a5-9801-d4767262b518-image.png

      0_1550306117771_7b10b382-e3a0-4a9f-ad9f-4b02d9b33eb7-image.png

      https://fxdreema.com/shared/ehY5VNLF

      The project´s logic shoud be:

      TrailingStopStep == 12.5
      ProfitStep == 25
      TrailStopEnabled == false

      If no position exists -> Modify (TrailStopEnabled == true) && Reset values && Reset Counter

      If position exists && TrailStopEnabled == true -> For each position -> If profit >= TP*(ProfitStep/100) --> Modify SL Level to (TrailingStopStep %) of current TP && Modify (TrailingStopStep *2, ProfitStep +25) && Counter == 1

      That will be executed again for the new values of TrailingStopStep & ProfitStep.

      When the Counter == 2, next time (3) the block passes && TrailStopEnabled == false disabling the TrailingStop and no other TS move is expected.

      Hope this helps.

      posted in Questions & Answers
      J
      josecortesllobat
    • RE: Facing issue with EA, can anyone resolve, EMA Cross BUY SELL

      This might be an approach

      0_1550303956423_3ebf596d-0aae-4d70-ab1a-3bf3bb4a2105-image.png

      https://fxdreema.com/shared/xb13EvfMc

      posted in Questions & Answers
      J
      josecortesllobat
    • RE: LOS EAS ME DAN PERDIDAS EN FORWARD Y REAL

      https://www.metatrader5.com/es/terminal/help/algotrading/testing#forward

      https://www.mql5.com/es/articles/3279

      posted in Questions & Answers
      J
      josecortesllobat
    • RE: Scale conversion.

      MQL Math function

      https://www.mql5.com/en/docs/convert/normalizedouble

      posted in Questions & Answers
      J
      josecortesllobat
    • RE: How to get the MA of the ADX indicator?

      The easiest way is to import a Custom indicator into fxDreema.

      posted in Questions & Answers
      J
      josecortesllobat
    • RE: ID 1 = 50% of ID 2

      I am not sure if it works as you expected because I have not gotten any signal backtesting it.

      https://fxdreema.com/shared/KSrxkWrJ

      0_1550302355818_35864942-a563-4e29-b362-08ed86c15e14-image.png

      But it could be an inspiration for you.

      posted in Questions & Answers
      J
      josecortesllobat
    • RE: Greetings I am new programming EA .., I want to program the crossing of ma MA200.

      Look at the fxDreema's examples page

      https://fxdreema.com/examples#

      https://fxdreema.com/examples#Crossover

      You will find some basic project examples that are very useful.

      posted in Questions & Answers
      J
      josecortesllobat
    • RE: Loop through double variables to find variable name

      Here you have @miro1360 post where you can find array´s info

      https://fxdreema.com/forum/topic/4501/video-tutorial-signals-dashboard-ea-advanced-looping-objects-arrays/4

      Hope this helps

      posted in Questions & Answers
      J
      josecortesllobat
    • RE: ID 1 = 50% of ID 2

      Store the candle's middle price in a variable

      0_1549926882303_89e774c4-d50f-4ca9-8c35-bfd149c7410c-image.png

      Here you have an example

      https://fxdreema.com/demo/mt4-formula

      posted in Questions & Answers
      J
      josecortesllobat
    • RE: introduction to fxdreema

      https://fxdreema.com/tutorial

      https://fxdreema.com/examples

      posted in Questions & Answers
      J
      josecortesllobat
    • RE: Question on Breakeven and then start Trailing stop

      Block "modify stops" works like this with your setup

      If Buy -> StopLoss Level = OpenPrice - 3pips
      If Sell -> StopLoss Level = OpenPrice + 3pips

      If what you want is to move the SL level above/below OpenPrice depending on the trade's direction, you can try this

      0_1549738509406_d673b806-a91a-4d00-9649-a8d58740cdf4-image.png

      0_1549738552500_c49efb4c-1f0c-4e36-8079-30af87c90695-image.png

      But this will not work as a "Trailing Stop" just like a BreakEven.

      posted in Questions & Answers
      J
      josecortesllobat
    • RE: Question on Breakeven and then start Trailing stop

      Trailing Stop example

      https://fxdreema.com/demo/mt4-loop-trailing-stop

      You can use something similar for Breakeven condition

      posted in Questions & Answers
      J
      josecortesllobat
    • RE: A simple EA question

      Do try this out

      0_1549725011706_ce467b17-929d-470c-9cbf-278e42526589-image.png

      posted in Questions & Answers
      J
      josecortesllobat
    • RE: Ticks

      @Juan-Manuel-Quiñonero

      @clintk is right. To convert "Pips" to "Points" you just have to multiply by 10.

      20pips * 10points/pips = 200 points

      Probably what you want is to convert "Pips" to "Price fraction". There will be an easiest way for sure but this works for me

      0_1548969785685_a7c76488-63a4-44a0-9bd9-d6069dce6b15-image.png

      20pips * Pointsize (0.0001 or 0.01) = 0.0020 or 0.2 (dpending on the pair and broker's digit precision)

      0_1548970107110_9af453a9-d036-4a5b-955a-f081d64db393-image.png

      posted in Questions & Answers
      J
      josecortesllobat
    • 1
    • 2
    • 5
    • 6
    • 7
    • 8
    • 9
    • 25
    • 26
    • 7 / 26