fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. teobusetti
    3. Posts
    T
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 17
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by teobusetti

    • RE: EA for SMA crossing

      @fxDreema Hey! I've tried to apply what you suggested but I cannot seem to figure out how to configure it properly.
      Isn't there another way of telling the indicator to "stop entering trades until X condition is met"? the X condition being that the SMA must crossover in the opposite direction.

      posted in Questions & Answers
      T
      teobusetti
    • RE: EA for SMA crossing

      @fxDreema Thanks! I will try to make it work with the example you provided 🙂

      posted in Questions & Answers
      T
      teobusetti
    • RE: EA for SMA crossing

      @miro1360 once per bar does not work. the following example could clarify a bit:

      • SMA cross on bar 0
      • stochastic gives signal on bar 2 and trade is entered
      • trade exit at bat 10
      • at bar 12 the stochastic gives another entry signal and the trade is entered
      • trade exit at bar 20
      • SMA cross again at bat 22

      I am trying to find a way to block the EA from entering the trade at bar 12 - i.e. any trade triggered after the first trade and before the SMA cross in the opposite direction of the first trade... hope it makes sense...

      posted in Questions & Answers
      T
      teobusetti
    • EA for SMA crossing

      Hi all,
      I am trying to build an EA that enters a trade when the 100 SMA > 200 SMA and when the Stochastic crosses the 25 level from below. Let's suppose I set a fixed TP and SL, each of 100 pips. How can you stop the EA from entering a new trade when the SL or TP are reached and the SMAs still have not crossed over?
      I.e. I would like the EA to enter just one trade per SMA crossovers...
      Many thanks!!!

      posted in Questions & Answers
      T
      teobusetti
    • RE: Trailing stop on last bar's close

      __Try something like this: http://prntscr.com/c3gik7
      But about the ATR value, put it in a Variable. I named it like "ATRValue" only for the example.
      I also think that 2 Trailing Stop blocks must be used, because of the "+" and "-" used for buys and sells[/quote:199rh1k4]

      Thanks for the input! But I do not quite understand what you have done there...I cannot see anywhere a reference to the previous bar close price and I cannot understand why you take the ATRvalue+ATRvalue2 , I would like PreviousClose+ATR2 ....could you explain it please? 🙂

      I have tried to update it like this https://fxdreema.com/shared/5hV58uyNd but like this it does not work on MT4 - I have attached a screenshot with the errors...any idea why it cannot run?

      ......
      Screen Shot 2016-08-09 at 22.00.22.png

      posted in Questions & Answers
      T
      teobusetti
    • RE: Trailing stop on last bar's close

      Hello everyone! 🙂

      I am trying to set a trailing stop loss based on the previous bar {Close Price + 2ATR} (for sell orders) and {Close Price - 2ATR} (for buy orders).
      I have tried to use loop blocks and the trailing stop block (blocks 41 to 44) but I cannot find a way to set the price "reference" as the previous candle close and to make this happen for every new bar created...does anyone know how to do this?

      https://fxdreema.com/shared/AkT0UWaM

      Thanks!!

      posted in Questions & Answers
      T
      teobusetti
    • RE: Get trade entry price

      __teobusetti, how many variations of the same EA do you have? 🙂

      In pink blocks, if you see Open Price, this is the price where the trade/position/order is opened. No candles here[/quote:1ox4y3ky]

      ahahah...I was just trying different things to see if I got it right 😄

      Thanks for the help, it seems to be working as I expected now

      posted in Questions & Answers
      T
      teobusetti
    • RE: Please help: Place ATR Stop Loss?

      __If I understood this right, you want to modify your stop just once. Now the bot modifies it on every tick though, and so forgets about your open bar as time passes.
      Use "check stop-loss" (needs to equal 0) and modify the stop only then.[/quote:17xwgd3b]

      Thanks 🙂 exactly what I was looking for!!

      posted in Questions & Answers
      T
      teobusetti
    • RE: Get trade entry price

      ____if you will work with open price, you can play with blocks:
      For each Trade + modify stops (here can you directly modify stops relative to open price) ....
      For each Trade + Modify Variables (select "in loop Trade order in loop")
      dont forged select parameters in For each Trade to define what trade you will get, it is loop - sometimes it is better to work inside this loop like outside
      there even exist better solution, but sometimes I am lazy to think :D[/quote:2t8j34cv]

      Thanks :D[/quote:2t8j34cv]

      Hey miro1360, I have tried what you suggested, but I think that "open price" refers to the open price of each candle... I would like to base the stop loss on the entry price of the trade, because otherwise I get the stop loss on the wrong candle (see attachment).
      Do you think this can be done? 😄

      This is what I have so far... https://fxdreema.com/shared/9aemECuBd

      ......
      Screen Shot 2016-07-18 at 21.49.38.png
      Screen Shot 2016-07-18 at 21.51.54.png

      posted in Questions & Answers
      T
      teobusetti
    • RE: Please help: Place ATR Stop Loss?

      __Be careful with these words - price level, pips, price fraction. This variable "SL_buy" contains price level value, but then in block 46 this variable is used for "Custom (pips)". Try this instead: http://prntscr.com/bu5v10[/quote:3l6hdyj9]

      Thanks!! seems to be working better 🙂
      But is not quite there yet, I cannot understand why it draws the Stop Loss on the last candle, rather than on the entry candle https://fxdreema.com/shared/uB2iAc00d

      I have set "candle ID"=1 with respect to the open price, in bloc 38 but it is not working as i would like...
      Would you please be able to suggest how to edit it?

      ......
      Screen Shot 2016-07-18 at 21.49.38.png
      Screen Shot 2016-07-18 at 21.51.54.png

      posted in Questions & Answers
      T
      teobusetti
    • RE: Please help: Place ATR Stop Loss?

      __In 14 and 22, will it work if you use < and >

      Block 32 like that... check this one: https://fxdreema.com/demo/mt4-loop-how-it-works[/quote:3dvs59po]

      Hi fxdreema, thanks for your suggestion! I see m to have solved the first problem

      However, I still cannot understand how to set a stop loss for a buy order = candle high - 3xATR
      I have tried like you suggested (block 36, 38, 45, 46 ,47) but by backtesting it I can see it is not working as supposed (see screenshot) - do you have any ideas of where I could be going wrong?
      https://fxdreema.com/shared/pDctZiDGc

      Thanks 🙂

      ......
      Screen Shot 2016-07-17 at 19.16.15.png

      posted in Questions & Answers
      T
      teobusetti
    • RE: Get trade entry price

      __if you will work with open price, you can play with blocks:
      For each Trade + modify stops (here can you directly modify stops relative to open price) ....
      For each Trade + Modify Variables (select "in loop Trade order in loop")
      dont forged select parameters in For each Trade to define what trade you will get, it is loop - sometimes it is better to work inside this loop like outside
      there even exist better solution, but sometimes I am lazy to think :D[/quote:kt4yum9j]

      Thanks 😄

      posted in Questions & Answers
      T
      teobusetti
    • RE: how to multiply ATR value and set as stop

      __I have had a similar question a few weeks ago. Of course I can post my solution of an atr_stop_loss. Download EA and backtest it on mt4 then you can see how it is working. Maybe it can help you.

      https://fxdreema.com/shared/53dmoBc7e[/quote:2i2klrgo]

      Hi ramsay09,
      I am trying to set a stop loss based on the ATR value and I have had a look at the work you did but cannot figure out where I am going wrong...all trades get stopped out at the price as the entry level. Is there any chance you could help me to sort it out please? https://fxdreema.com/shared/mcqgJw3cc
      I think the problem is in the "ATR stop loss" area....

      posted in Questions & Answers
      T
      teobusetti
    • RE: Get trade entry price

      Hi everyone,
      I am trying to set a stop loss based on the trade entry price, would any one be able to suggest how to get the trade entry price? https://fxdreema.com/shared/9JEmBljHc
      Thanks 🙂

      posted in Questions & Answers
      T
      teobusetti
    • RE: Please help: Place ATR Stop Loss?

      __What if you backtest on Daily and you don't use block 1. If it's the same.. well, maybe at the time the conditions were true. If you want to see everything at this particular moment when the Sell is created, you can put "Terminate" immediately after the sell block and the EA will stop there. Or use "Delay" (but edit its settings so it can pause the EA while backtesting) and in Visual mode you can see exactly what is going on at the moment :)[/quote:1yknj4ew]

      Hi! Thank you for the input 🙂
      The conditions shown in the screenshot are already the 'correct' conditions, if you will - i.e. Daily chart with 50 SMA and 100 SMA, but as you can see, the entry point for the sell trade does not seem correct...

      Would you also have any suggestions on how to implement the ATR stop loss? For example, for a buy order I am trying to set an an initial stop loss = (Entry price) - (3 x ATR) , when the 10-day lowest low becomes higher than the stop loss, I would like this to become the exit point....if it makes sense...
      I have tried many different possibilities, but cannot seem to get it right. This is what I have now https://fxdreema.com/shared/boFwQ4rMb 😄

      Cheers guys!

      posted in Questions & Answers
      T
      teobusetti
    • RE: Please help: Place ATR Stop Loss?

      __in blocks where you compare MA, you compare null candle, it means that as time goes this flight up and down and can cross and not cross, you can try compare candle 1 (More Settings - Candle ID in block for comparison).
      Be sure, that you have same period in EA like in chart for visualization results
      check what happens with visual tester mode[/quote:2rinftm2]

      Hi miro1360, thanks for the suggestion. I shall try it and let you know 🙂

      posted in Questions & Answers
      T
      teobusetti
    • RE: Please help: Place ATR Stop Loss?

      Hi everyone!

      I am trying to create an EA that buys (sells) when the price breaks above (below) the highest high (lowest low) of X previous days.

      I am curenlty having 2 problems:

      1. I am trying to include a trend filter so that the trade is placed only if the fast SMA is above (below) the slow SMA. However in the EA I have built there are some sell trades that are placed against the trend (i.e. when the fast SMA is above the slow SMA) - see screenshot. Would anyone be able to tell me where i went wrong?

      2. I would like to place a stop loss based on [(highest high of X days) - 3x ATR] or [(lowest low of X days) + 3x ATR]. I have tried a few solutions, but cannot seem to make it work. Does anyone have suggestions?

      Thanks a lot!

      EA: https://fxdreema.com/shared/zeFLoMrCd

      Screen Shot 2016-07-13 at 08.21.21.png

      ......
      Screen Shot 2016-07-13 at 08.21.21.png

      posted in Questions & Answers
      T
      teobusetti
    • 1 / 1