fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    How can I add my project to the forum ?

    Questions & Answers
    2
    7
    1538
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      GM4370 last edited by

      Hi everyone !

      Mr fxDreema tell me please how can I load up part of my project to here, if I have questions / I have some 🙂 / ? You need to see what I'm talking about 🙂

      Thanks.

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        From the web version, go to Projects - Create a shared copy, which is the last option there. But I can also see your projects there without this 🙂

        1 Reply Last reply Reply Quote 0
        • G
          GM4370 last edited by

          This shared copy option don't work for me or maybe just I don't know how but I can't do copy the web link to here.

          1 Reply Last reply Reply Quote 0
          • fxDreema
            fxDreema last edited by

            I tried it now and it seems to be working, so I don't know. But nevermind, as i really can see all your projects (on the web version only), just ask me? 🙂

            1 Reply Last reply Reply Quote 0
            • G
              GM4370 last edited by

              " Create Custom Blocks " It is possible overwrite or modify a block with this program ? Do you have any Description for learn it or I have to learn from you ?

              first step of my project 🙂
              https://fxdreema.com/shared/HlFOSRKNb

              1 Reply Last reply Reply Quote 0
              • fxDreema
                fxDreema last edited by

                Of course it's not possible, all the system blocks are what they are - I update them from time to time, they are not meant to be updated by the user.
                Well, here is some old information, now I'm not sure you will understand something, but... at least it's something: https://fxdreema.com/documentation/libr ... y%20studio

                Basically you can open this tool, give a new block name, hit "New", write some code and you will got a new block. All the code is written in a variable, so you should define variables as local or static, global variables also can be used.

                There are few keywords, this is the code for Buy now for example:

                SetSymbol(SYMBOL);
                
                //-- stops ------------------------------------------------------------------
                double sll=0, slp=0, tpl=0, tpp=0;
                
                     if (StopLossMode=="fixed")        {slp=StopLossPips;}
                else if (StopLossMode=="dynamicPips")  {slp=~dpStopLoss~;}
                else if (StopLossMode=="dynamicDigits"){slp=toPips(~ddStopLoss~,SYMBOL);}
                else if (StopLossMode=="dynamicLevel") {sll=~dlStopLoss~;}
                
                if (TakeProfitMode=="fixed")              {tpp=TakeProfitPips;}
                else if (TakeProfitMode=="dynamicPips")   {tpp=~dpTakeProfit~;}
                else if (TakeProfitMode=="dynamicDigits") {tpp=toPips(~ddTakeProfit~,SYMBOL);}
                else if (TakeProfitMode=="dynamicLevel")  {tpl=~dlTakeProfit~;}
                
                //-- lots -------------------------------------------------------------------
                double lots=0;
                double pre_sll=sll; if (pre_sll==0) {pre_sll=SymbolAsk(SYMBOL);}
                double pre_sl_pips=toPips(SymbolAsk(SYMBOL)-(pre_sll-toDigits(slp,SYMBOL)));
                
                     if (VolumeMode=="fixed")             {lots=DynamicLots(VolumeMode, VolumeSize);}
                else if (VolumeMode=="block-equity")      {lots=DynamicLots(VolumeMode, VolumeBlockPercent);}
                else if (VolumeMode=="block-balance")     {lots=DynamicLots(VolumeMode, VolumeBlockPercent);}
                else if (VolumeMode=="block-freemargin")  {lots=DynamicLots(VolumeMode, VolumeBlockPercent);}
                else if (VolumeMode=="equity")            {lots=DynamicLots(VolumeMode, VolumePercent);}
                else if (VolumeMode=="balance")           {lots=DynamicLots(VolumeMode, VolumePercent);}
                else if (VolumeMode=="freemargin")        {lots=DynamicLots(VolumeMode, VolumePercent);}
                else if (VolumeMode=="equityRisk")        {lots=DynamicLots(VolumeMode, VolumeRisk, pre_sl_pips);}
                else if (VolumeMode=="balanceRisk")       {lots=DynamicLots(VolumeMode, VolumeRisk, pre_sl_pips);}
                else if (VolumeMode=="freemarginRisk")    {lots=DynamicLots(VolumeMode, VolumeRisk, pre_sl_pips);}
                else if (VolumeMode=="fixedRisk")         {lots=DynamicLots(VolumeMode, VolumeSizeRisk, pre_sl_pips);}
                else if (VolumeMode=="fixedRatio")        {lots=DynamicLots(VolumeMode, FixedRatioUnitSize, FixedRatioDelta);}
                else if (VolumeMode=="dynamic")           {lots=AlignLots(~dVolumeSize~);}
                
                //-- send -------------------------------------------------------------------
                int ticket=BuyNow(SYMBOL, lots, sll, tpl, slp, tpp, Slippage, (MagicStart+OrdersGroup), MyComment, ArrowColorBuy);
                
                if (ticket>0) {~next~} else {~error~}
                

                Use ~next~ where next blocks should be executed
                Use ~inext~ for yellow output
                Use ~error~ for gray output
                Use ~MyParameterName~ to get the value of any parameter. In the help you will see ~f:Parameter~ - this does not work anymore.
                Use ~X~ to get the ID of this block

                I think those are the general ones. All these are replaced with something else while building the EA.

                You can create custom functions, even with the same name as those I have created. In this case mine will be automatically renamed in system blocks, but still used.
                I will not recommend to use Predefined parameters.
                In this field below the code you can define global variables for this block. better define them one in a row... or better use static variables.

                I can recommend to use integer values for select (options) type of parameters. Here I used string values fot this VolumeMode, which looks fine, but it slows down the EA. Especially when used in blocks that are executed on every tick. At least Buy now is not one of these 🙂

                1 Reply Last reply Reply Quote 0
                • G
                  GM4370 last edited by

                  I just thought something similar program, like create "easily" an EA in fxdreema but now I see, not . I wouldn't like to write and use any code for creating my EA.
                  Definitely I need more time, to learn all blocks with all options. I hope, I will find everything what I need for build my EA between in your blocks and also I think it is much better if I ask you for help me.

                  Thank you anyway, maybe some people will use this informatios.

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post

                  Online Users

                  S
                  E
                  E
                  H
                  W

                  10
                  Online

                  146.7k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors