fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. fxDreema
    3. Posts
    • Profile
    • Following 0
    • Followers 691
    • Topics 32
    • Posts 7485
    • Best 277
    • Controversial 18
    • Groups 1

    Posts made by fxDreema

    • RE: Distance from open price

      http://prntscr.com/6rsbzb

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Distance from open price

      This should work, but add "For each Trade" above. Here is more about it: https://fxdreema.com/demo/mt4-loop-how-it-works

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Market Properties > Timeframe doesn't come through in Alerts

      You are trying to set the timeframe as input parameter?

      I can see your projects and I just looked at your current project. There are some things there...
      First, I really don't recommend you to use those checkboxes that sets parameters as input parameters. Instead, define some Constants: https://fxdreema.com/demo/mt4-constants For period parameter, use ENUM_TIMEFRAMES as datatype if you want MetaTrader to give you drop-down menu with all available timeframes. ENUM_TIMEFRAMES is just some fancy data type that is actually integer, but tells MetaTrader to treat these variables differently in some situations.
      Another thing is, when you use those pink blocks, especially in MT4, you should also use one of "For each..." block: https://fxdreema.com/demo/mt4-loop-how-it-works

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: order manager

      I just added an option for this 🙂

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: order manager

      I know what is going on. "Once per trade/order" does not work for trades created before the EA was started. The idea behind this is to prevent repeating the same actions over the same trades when the EA is restarted.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Помощ за МА пресичане

      Остави го ти масива, но и блоковете не са ти наредени най-добре логически, използваш отделна променлива за всеки от тях... и така.

      Първо бих ти препоръчал да провериш дали все пак няма такъв индикатор направен някъде. Има толкова индикатори - безплатни, платени, всякакви. Верно че аз като потърся някой никога не намирам точно каквото ми трябва, ама айде. После идва това с кода. Индикаторите по принцип са шаблони и на определено място пишеш калкулациите. Има там една такава особеност, да го направиш така че да не преизчислява всичко всеки път, а само прясната информация.

      Иначе основната идея е да се напълнят едни масиви (за всеки буфер по един) с данни. Даже и да го разпишеш толкова подробно както е сега в експерта, пак става. Сметки, сметки, сметки - крайната стойност се записва в буфера. А за твоите сметки като гледам ти трябват две елементарни функции - iClose() и iOpen()

      Ето и една тема дето са обяснили основните неща: http://book.mql4.com/samples/icustom Аз лично нямам никакъв интерес да пиша индикатори, но веднъж реших да пробвам да разпиша нещо, следвах в тая тема нещата и се получи, а даже ми беше и забавно. То заради това е пълно с индикатори из нета, защото се пишат относително лесно 🙂

      http://prntscr.com/6qo7p7
      http://img.prntscr.com/img?url=http://i.imgur.com/sPLvc7h.png

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: order manager

      If the EA is to be used only for manual trades/orders, then you can leave blocks by default and set this to 0: http://prntscr.com/6qnnc8

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Помощ за МА пресичане

      От друга страна не си много подготвен като програмист 🙂

      • Когато някаква последователност от сметки ще се прави няколко пъти, тя се записва на едно място във функция (нещо като черна кутия) дето си има входове и изход. Задаваш входовете, пускаш я в действие и получаваш нужния резултат.
        Тогава имаш тялото на тази фукнция записано веднъж някъде, а не копирано тук и там на 100 места. Въобще в програмирането една от най-лошите практики е едно и също парче код да е написано на две или повече места. И понеже генератора също е един вид програмиране, често го правят това. Резултата е десетки и стотици блокове, едва ли не невъзможност да се редактират в бъдеще, трудно откриване на проблеми и още по-трудно оправяне на проблеми, излишно изразходване на ресурси.

      • След като има повтаряемост на действия, прави се масив и цикъл. Масива е щайга с всички необходими входни стойности, примерно имената на маркетите дето трябва да се изчислят. Цикъла се повтаря по веднъж за всяка стойност от тоя масив, а резултата се събира примерно в някоя променлива.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Помощ за МА пресичане

      При такива нужди, признавам си, нямам качествено решение 🙂 Това по принцип си е класическа работа за индикатор - да се занимава със сметки. Въпросните калкулации сигурно ще се запишат с 20 реда код там, а под формата на експерт виждаш как е. Най-доброто, а може би и най-лесно решение е да се направи индикатор. Освен ако няма вече такъв.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Suggestions for fxdreema

      I was also thinking about that and I will add this in future. I almost have this, but in a new version that I am working on. You probably know that I decided to rewrite the whole website... which turned out to be not as easy as I expected. Working alone has advantages and disadvantages 🙂 I am maybe at 90% now, but there are still many things that I need to do.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Помощ за МА пресичане

      Тук доста зависи какви са тия числа. Нормално се търсят минимуми и максимуми на група еднотипни числа, които се намират в масив. Така разхвърляни и взети от разни места, без обща природа... не че е сложна работа, ами някак бакалска.

      Май не е зле да замисля нещо с тия масиви, често ми задават такива въпроси за обработване на числа 🙂

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Trade on specific days.

      You tried some time filters? Time Filter, Hours filter, Minutes filter...

      But don't use too narrow times. If you want to do something exactly in 13:00:00 and not in 13:00:01, this will probably not happen, because EAs work only when a tick comes, but ticks come in irregular time periods. So, always have some time period - minute, two, five... And to make things to happen once, "Once per bar" can help. Or if you open a new trade "No trade is running" can be enough.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: close partial error

      What are you trying that is not working?

      SL for buys can be only below Bid and for Sells - above Ask. Plus some additional limits like StopLevel and FreezeLevel. If you want to put SL/TP too close to the current price, the minimum possible SL/TP size will be taken.

      Again, SL and TP are placed according to Ask or Bid. It just happens that Open Price of any trade is Ask or Bid in the moment when this trade was created. When the trade profits, you can put SL on the "other side" of that Open Price. And when the trade is on lose, you can also put TP on the other side.
      SL and TP does not care about Open Price, they care only about Ask and Bid.

      Here is more detailed information: http://book.mql4.com/appendix/limits

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: errors during downloading.

      😮 Everything is wrong, but what exactly is wrong? 😮

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Market Properties > Timeframe doesn't come through in Alerts

      Here you can see actual values of timeframes: http://docs.mql4.com/constants/chartcon ... timeframes

      M1, M5, M15... this means nothing. These are only short names. There are predefined constants like PERIOD_M5 that has values like 5, which is basically the number of minutes within the timeframe.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: PA and MA cross

      Here is more about the crossover: https://fxdreema.com/demo/mt4-crossover-how-it-works By the way, the third method actually works, I need to fix that example 🙂
      There are 2 more blocks for crossover: http://prntscr.com/6q18cq

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: I need to place a sell order at 30min chart, provided daily

      Click on More settings: http://prntscr.com/6q161v

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: close partial error

      Opened stop order... you mean pending order or running trade? Stop Loss for Buy trades and orders can be below their open price, and only in case of running trade, SL can be above the open price if the current price is also above the open price. So, Stop Loss depends on the current market price.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: I need to place a sell order at 30min chart, provided daily

      This indicator is a little bit weird and I always forget how it is working, but there should be some information in the forum. Also, I can't see what is the condition... white bar appears, 2 red bars in a row...

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: close partial error

      ALWAYS use one of the "For each..." block before using some other pink block like close (partially) when you work on MT4

      posted in Questions & Answers
      fxDreema
      fxDreema
    • 1
    • 2
    • 228
    • 229
    • 230
    • 231
    • 232
    • 374
    • 375
    • 230 / 375