fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. trader.philipps
    3. Posts
    T
    • Profile
    • Following 3
    • Followers 38
    • Topics 20
    • Posts 1001
    • Best 91
    • Controversial 2
    • Groups 0

    Posts made by trader.philipps

    • RE: SL and trailing SL in the middle of the candlestick

      @trader-philipps Ok, testet with modify variables block and works as well.

      0_1578177031772_13ca55c8-3e20-4935-bf01-5a3ff1fc9970-image.png

      posted in Questions & Answers
      T
      trader.philipps
    • RE: SL and trailing SL in the middle of the candlestick

      @tns I think this doesn't work with ATR as it is a price fraction.

      0_1578176427198_e0c591ef-b023-4e8c-a6cb-443b345a6fe9-image.png

      I use a custom mql block on the onInit tab to get the digits for pips multiplication like that ..

      0_1578176604243_56411bb6-94c2-408c-9874-20e1ca2db4c4-image.png

      where vd_to_pips_multi you would multipli the ATR result with.

      Maybe that function also works in a modify variables block. haven't tried, yet!

      posted in Questions & Answers
      T
      trader.philipps
    • RE: How can I collect the latest open positions in the event of a trend change?

      @khalids222 Check this. It's closer but probably still not what you want.

      0_1578175676774_CONSULTNANT FX.mq4

      What happens if there are several sells and several buys?

      0_1578175836800_0069222a-3b39-43b3-969d-2ba93ce2c5df-image.png

      This sequence is

      Sell
      Buy
      Buy
      Sell
      Sell
      Buy
      Sell

      Which lot size each step should have?

      posted in Questions & Answers
      T
      trader.philipps
    • RE: Using exponent "operand"

      @seb-0 I think fxdrema creates a function per custom mql code. However, I haven't used it to call from a different place and I have no idea how to do so.

      Just created a cutom code block like that.

      0_1578172063341_5c3919d7-0c80-44bd-8e7a-7e1c9b978f4c-image.png

      The mql result is like that ..

      // Block 32 (PrintHelloWorld)
      class Block19: public MDL_CustomCode<bool>
      {

      public: /* Constructor */
      Block19() {
      	__block_number = 19;
      	__block_user_number = "32";
      	_beforeExecuteEnabled = true;
      }
      
      public: /* Callback & Run */
      virtual void _callback_(int value) {
      }
      
      virtual void _beforeExecute_()
      {
      	Print("Hello, World");
      }
      

      };

      posted in Questions & Answers
      T
      trader.philipps
    • RE: TSV- Time Segmented Volume Indicator Not working

      @errinjm If I test the indicator itself, it works (I use tickdata suite).

      May you share your project?

      posted in Questions & Answers
      T
      trader.philipps
    • RE: How can I collect the latest open positions in the event of a trend change?

      @khalids222 Be more careful when creating your projects! Sample would have worked if you'd do what I did and write variables without spaces. Keep in mind that peopke help here voluntarily!

      https://fxdreema.com/shared/zQEk0b8yd

      posted in Questions & Answers
      T
      trader.philipps
    • RE: How can I collect the latest open positions in the event of a trend change?

      @khalids222 Can you share your project, please? I don't have an example around as martingale/averaging style is not what I usually build.

      posted in Questions & Answers
      T
      trader.philipps
    • RE: SL and trailing SL in the middle of the candlestick

      @tns Looks like your spread is extremely high. Maybe you used current spread in tester and it is extremely high because of weekend? Just a guess.

      posted in Questions & Answers
      T
      trader.philipps
    • RE: TSV- Time Segmented Volume Indicator Not working

      @errinjm On importing the indicator you see the buffers ..

      0_1578164469571_d7d8981c-a294-4114-8e3a-52391b5249b8-image.png

      Green is up, red is down.

      Btw., how are you going to use it? o cross?

      posted in Questions & Answers
      T
      trader.philipps
    • RE: Using exponent "operand"

      @seb-0 Use pow() or MatPow() function https://docs.mql4.com/math/mathpow

      posted in Questions & Answers
      T
      trader.philipps
    • RE: hi guys i have 4 condition both buy and sell but i dont know how put limit trade per direction

      @traderscornerph Just from my crystal ball I guess you mean something like that ..

      0_1578163884253_d0833406-11a1-423f-b479-159fcac01fa3-image.png

      Example to limit up to 2 open trades.

      posted in Questions & Answers
      T
      trader.philipps
    • RE: Store how many orders open at the same time

      @l-andorrĂ  49 only .. I lost as a noob đŸ˜„

      posted in Questions & Answers
      T
      trader.philipps
    • RE: Virtual trailing stop

      @ambrogio Sure, but at least a bit of secure feeling it would give đŸ˜‰

      posted in Questions & Answers
      T
      trader.philipps
    • RE: String variable adjustment using "Modify Variables" block?

      @l-andorrĂ  String datatype is used for characters such as a b c, blanks and other special character and also numbers. However the values as numbers are not numbers to calculate with such as multiplication.
      In order to transform a number in String datatype to a number in a numeric datatype you need to convert it.
      In the given case there is a comma separated lost of numbers stored in a String datatype. In order to get it as numbers, you'd need to create an array of numbers from it and address each value from the array's index.
      If you use the String (list of numbers) as a betting sequence, fxdreema does that work for you.
      If you want to do this manually, you need to implement the de-seralization by yourself.

      posted in Questions & Answers
      T
      trader.philipps
    • RE: Virtual trailing stop

      @ambrogio If you use virtual stops you should also consider using the emergency stop function in case the connection to the broker gets lost!

      posted in Questions & Answers
      T
      trader.philipps
    • RE: Store how many orders open at the same time

      @ambrogio Take a look here, I think in my example I do similar things https://fxdreema.com/forum/topic/8455/how-can-i-collect-the-latest-open-positions-in-the-event-of-a-trend-change/5

      posted in Questions & Answers
      T
      trader.philipps
    • RE: TSV- Time Segmented Volume Indicator Not working

      @errinjm Well, many authors don't user the SetIndexLabel function in order to make it readable. In tat case you'd just see Buffer 0, Buffer 1 etc. on importing the indicator. If you only have the ex4 file and not the sources of the indicator, you need to set the buffers by yourself.
      If you could share it, I might take a look.

      posted in Questions & Answers
      T
      trader.philipps
    • RE: I need help with my custom indicator not loading on time

      @yarzu25 https://www.mql5.com/en/forum/184066

      posted in Questions & Answers
      T
      trader.philipps
    • RE: How can I collect the latest open positions in the event of a trend change?

      @khalids222 I haven't tested it, but I'd do the following on the onTrade tab (regular use not after EA restart):

      0_1577981569035_a92aae36-041c-4e10-b052-a65f52cd6681-image.png

      Have 2 variables and loop through all Buy and Sell trades and increase thevariable value by the lot size of the trade in the loop.
      Once you have stored them, you may use the sell variable value + your increment (eg. 0.01) for buy trades and vice versa.

      If you restart your terminal you may need to let the calculation run as well somewhere if there are already open positions.

      posted in Questions & Answers
      T
      trader.philipps
    • RE: How can I collect the latest open positions in the event of a trend change?

      @khalids222 Very hard to get your problem. Do you want a seperate sequence per buys and sells?
      Like Buy 0.10, 0.20, ...
      Sell 0.10, 0.20, ... ??

      posted in Questions & Answers
      T
      trader.philipps
    • 1
    • 2
    • 20
    • 21
    • 22
    • 23
    • 24
    • 50
    • 51
    • 22 / 51