fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. tcanuto
    3. Posts
    • Profile
    • Following 0
    • Followers 3
    • Topics 102
    • Posts 653
    • Best 5
    • Controversial 1
    • Groups 0

    Posts made by tcanuto

    • RE: Error in OnTick function

      __I can suggest to inspect those indicator values that you use for SL. I think that "Write to file" block can output this information when optimizing.[/quote:jx9c7utl]
      OK. How do I do that?

      Today I have compiled in mql5 and appeared to me the following message:
      "possible loss of data due to type conversion TCF DC MM v1.1.mq5 4183 16"

      Is a warning important? Can influence in my trandes?

      posted in Bug Reports
      tcanuto
      tcanuto
    • RE: How to use 2 volume modes

      What I need is for the fixedRatio is the VolumeUpperLimit.

      
      input double MMPorcento = 1; // MM Porcento
      input string MMVolumeMaximo = "fixedRatio"; // MM Volume Maximo
      input double MMRJUnidade = 0.1; // MM Ryan Jones Unidade
      input double MMRJDelta = 200; // MM Ryan Jones Delta
      
         //////////////////////
        // Input parameters //
       ///////////////////////
      
      string VolumeMode = "balanceRisk"; // Money management
      double VolumeRisk = MMPorcento; // Risk percent
      double FixedRatioUnitSize = MMRJUnidade; // Fixed Ratio: Unit size
      double FixedRatioDelta = MMRJDelta; // Fixed Ratio: Delta parameter
      double VolumeUpperLimit = MMVolumeMaximo; // Volume upper limit
      
      
      posted in Questions & Answers
      tcanuto
      tcanuto
    • RE: How to use 2 volume modes

      In summary, I need this:

      
      input double MMPorcento = 1; // MM Porcento
      input double MMVolumeMaximo = "fixedRatio"; // MM Volume Maximo
      input double MMRJUnidade = 0.1; // MM Ryan Jones Unidade
      input double MMRJDelta = 200; // MM Ryan Jones Delta
      
      
      
      posted in Questions & Answers
      tcanuto
      tcanuto
    • RE: How to use 2 volume modes

      I'm not saying the fxDreema block codes, but how to change in mql5 code.

      I need to manage by balance risk, but maximum volume is the result of fixed ratio.

      See:

      
      input double MMPorcento = 20; // MM Porcento
      input double MMVolumeMaximo = 50; // MM Volume Maximo
      input double MMRJUnidade = 0.01; // MM Ryan Jones Unidade
      input double MMRJDelta = 200; // MM Ryan Jones Delta
      
      //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
      // fxDreema block #3 (Buy now) //
      void block3(int _parent_=0)
      {
      	if (block3==false || FXD_BREAK==true) {return;}
      	FXD_CURRENT_FUNCTION_ID=3;
      
      	//////////////////////
      	// Input parameters //
      	//////////////////////
      	
      	string OrdersGroup=""; // Group # (empty=Default)
      	string SYMBOL=CurrentSymbol(); // Market
      	string VolumeMode="balanceRisk, fixedRatio"; // Money management
      	double VolumeSize=0.1; // Lot size
      	double VolumeSizeRisk=50; // Amount of money to risk
      	double VolumeRisk=MMPorcento; // Risk percent
      	double VolumePercent=100; // Volume size
      	double VolumeBlockPercent=3; // Block % of Balance
      	double FixedRatioUnitSize=MMRJUnidade; // Fixed Ratio: Unit size
      	double FixedRatioDelta=MMRJDelta; // Fixed Ratio: Delta parameter
      	double mmMgInitialLots=0.1; // Initial volume
      	double mmMgMultiplyOnLoss=2; // Multiply on loss
      	double mmMgMultiplyOnProfit=1; // Multiply on profit
      	double mmMgAddLotsOnLoss=0; // Add lots on loss
      	double mmMgAddLotsOnProfit=0; // Add lots on profit
      	int mmMgResetOnLoss=0; // Reset after how many losses?
      	int mmMgResetOnProfit=1; // Reset after how many profits?
      	double mm1326InitialLots=0.1; // Initial volume
      	bool mm1326Reverse=false; // Reverse 1-3-2-6?
      	double mmFiboInitialLots=0.1; // Initial volume
      	double mmDalembertInitialLots=0.1; // Initial volume
      	bool mmDalembertReverse=false; // Reverse D'Alembert
      	double mmLabouchereInitialLots=0.1; // Initial volume
      	string mmLabouchereList="1,2,3,4,5,6"; // List of numbers
      	bool mmLabouchereReverse=false; // Reverse Labouchere
      	double mmSeqBaseLots=0.1; // Base volume
      	string mmSeqOnLoss="3,2,6"; // Sequence on loss
      	string mmSeqOnProfit="1"; // Sequence on profit
      	double mmSeqReverse=false; // Reverse system?
      	double VolumeUpperLimit=MMVolumeMaximo; // Volume upper limit
      	string StopLossMode="dynamicLevel"; // Stop-Loss mode
      	double StopLossPips=10; // in pips...
      	double StopLossPercentTP=100; // % of Take-Profit
      	string TakeProfitMode="none"; // Take-Profit mode
      	double TakeProfitPips=10; // in pips...
      	double TakeProfitPercentSL=100; // % of Stop-Loss
      	double l0ca1_Slippage=Slippage; // Slippage
      	string MyComment="Long trade"; // Comment
      
      

      Same procedure with the sell block.

      I tried this but it didn't work. I believe there is something else that needs to be done in mql5 code.

      posted in Questions & Answers
      tcanuto
      tcanuto
    • RE: Error in OnTick function

      Yes. I had no problems in backtest visual.

      SL Mode Dynamic Level (price imput)

      Here's to analysis:
      https://fxdreema.com/shared/JWNVt9cXc

      ......
      donchian_channels.mq5

      posted in Bug Reports
      tcanuto
      tcanuto
    • RE: How to use 2 volume modes

      I would like to know how can I modify the code to use the VolumeMode Balance Risk with Fixed Ratio?

      I need you to manage by balance risk, but maximum volume is the result of fixed ratio.

      posted in Questions & Answers
      tcanuto
      tcanuto
    • RE: Error in OnTick function

      Hello fxDreema.

      I have this problem to do optimizations:

      11:11 Core 2 2015.05.25 pass 0 tested with error "critical runtime error 503 in OnTick function (zero divides, module Experts\Advisors\TCF DC MM DC MM v1.0.ex5, file v1.0.mq5, line TCF 2828, Coll. 83)" in 00:00: 07,519

      This line in the code is:

      else if (mode == "balanceRisk") {size = ((value/100) * AccountBalance ())/(sl * TickValue * PipValue (symbol));}
      
      

      You have something wrong? Tested in two MT5 and different accounts.

      ......
      TCF DC MM v1.0.mq5

      posted in Bug Reports
      tcanuto
      tcanuto
    • RE: Skip the first signal

      Just one question: MT4 accept orders based on two different timeframes?
      In H1 D1 based on, for example.

      posted in Questions & Answers
      tcanuto
      tcanuto
    • RE: Skip the first signal

      I got it. It worked. Thank you!

      posted in Questions & Answers
      tcanuto
      tcanuto
    • RE: Skip the first signal

      Hello fxDreema.

      By necessity, and also for its recommendation, created this EA for MT4.
      But did not open any order.
      This identical to MT5 version.
      Here is my project:
      https://fxdreema.com/shared/WjeHJYDzc

      posted in Questions & Answers
      tcanuto
      tcanuto
    • RE: Problem in open position.

      I'm using the MT5 for being better and more practical optimization, test forward, etc.

      Also the site is in portuguese, making it too easy for us. This at the time here, and is being used in some brokers for trading stocks.

      posted in Bug Reports
      tcanuto
      tcanuto
    • RE: Problem in open position.

      Hello fxDreema. All right? How long do not write here!

      I'm having trouble not to open positions, do not know why.
      In short, appeared to me the following message:

      log daily:
      EG 0 18:00:20.040 Trades '559799': market sell 0.01 EURUSD
      PM 2 18:00:28.578 Trades '559799': failed market sell 0.01 EURUSD [Market closed]
      https://mega.co.nz/#!eZoDkBqQ!1aIr12aoI ... qQ6x38gqt0

      log experts
      JQ 0 18:00:19.456 pz-turtle-trading-mt5 (EURUSD,D1) PZ Turtle Trading (My Alert Name) __ Sell (S1)
      HN 0 18:00:28.578 TCF Trend MT RJ v2.0 (EURUSD,D1) 26
      https://mega.co.nz/#!TUBX2JaC!KN47GcTIm ... NaD15nMpgI

      I added the link to the EA files and the indicator for you to analyze what happened to me yesterday.

      Indicator: turtle trading.ex5 24 KB
      https://mega.co.nz/#!iI5hSRTT

      EA: TCF Trend MT RJ v2.0.mq5 200 KB
      https://mega.co.nz/#!TdASXIyJ

      Note. Could not attach the file, so this the link. Key to open the indicator and MQL5 EA sent by private message.

      posted in Bug Reports
      tcanuto
      tcanuto
    • RE: Skip the first signal

      Hello fxDreema.

      I have noticed that every time I close the platform and restart my notebook, my EA has open position in USDCAD, disregarding the rule block "Indicator Appear". Only this pair since the other pairs EURUSD, GBPUSD, etc. I did not have this problem.

      posted in Questions & Answers
      tcanuto
      tcanuto
    • RE: Skip the first signal

      Hello fxDreema

      This version of my EA works with two different timeframes at the same time as if two graphs. In backtest and forward test it works ok, but it looks like running on real or demo account works differently. Will be the timeframe that I put to work this wrong? I have to use the chart that the EA is running more or less timefreme?

      posted in Questions & Answers
      tcanuto
      tcanuto
    • RE: Skip the first signal

      I believe that if you use the pink block "Indicator Appear", already work for you.

      posted in Questions & Answers
      tcanuto
      tcanuto
    • RE: Skip the first signal

      Ushiha, what would be the problem?

      posted in Questions & Answers
      tcanuto
      tcanuto
    • RE: Enumerations the input Parameters

      Ok FxDreema. That's right. Now that I know the representative numbers, has no problem doing the tests.

      posted in Questions & Answers
      tcanuto
      tcanuto
    • RE: Enumerations the input Parameters

      So ... it seems to me you have to migrate from MQL4 to MQL5 to appear H1, H4, etc. So the values ​​are right, but at the time of testing visual, it will automatically test the current timeframe, not the timeframe of the result.

      But thanks for the info, as for now I can provisar changing the parameters of manually timeframe for the visual test.

      I'm waiting to change the test for H1, H2, H4, etc., because then I can do the visual tests automatically with the correct file generated set.

      posted in Questions & Answers
      tcanuto
      tcanuto
    • RE: Enumerations the input Parameters

      I believe that should appear H1, H4, D1, and instead of integers, as in the case of true and false, for example.

      I do optimizations always to meet the asset itself, to know which setting performs better historically at least. Operate a strategy without testing it is almost like taking a car without knowing drive. It may be that you arrive at the destination, but in most cases not.

      posted in Questions & Answers
      tcanuto
      tcanuto
    • RE: Enumerations the input Parameters

      I must do something for the H1, H4, D1, etc. appear, instead of 16385 numbers, etc.?

      posted in Questions & Answers
      tcanuto
      tcanuto
    • 1
    • 2
    • 14
    • 15
    • 16
    • 17
    • 18
    • 32
    • 33
    • 16 / 33