Jump to content

wonder833

Members
  • Posts

    67
  • Joined

  • Last visited

Reputation Activity

  1. Like
    wonder833 reacted to kennyhubbard in (REQ Plz) Simple Take Profit EA based on Bollinger Bands   
    Here is a minor update of the Bol_TP EA. I have removed the function that removes the EA from the chart when you load it onto a second chart of the same currency/TF by mistake. Unfortunately it was deleting my global variables when it did this which causes the scripts to malfunction. Instead now, the EA remains on the chart but is inactive. This also saves you the hassle of reloading the EA if it was a simple mistake.....just change the TF or Pair and the EA continues to work normally.
     
    There is a minor issue where the lots traded reverts to fixed lots when lotsize is limited by broker minimum. This is not intentional but it still serves the same function, so I am not to worried about it.
     
    http://www.multiupload.com/8HMVWLBD84
    http://www.multiupload.com/O4XOZNRIM0
    http://www.multiupload.com/3MWB2VL2KR
    http://www.multiupload.com/QGHL0DQYEL
     
    Benny, I saw some-one asking about the latest version......I have seen in other development threads that it is common practice to place the latest versions in the first post of the thread and continuously update that post as the discussion grows. I wonder if I could ask you to repost the links in your first post, along with the instructions.
  2. Like
    wonder833 reacted to kennyhubbard in (REQ Plz) Simple Take Profit EA based on Bollinger Bands   
    Good news guys,
     
    I had a little time available, so here is the dashboard with the stochastics filter. It is standard 9,3,3 using EMA with low/high price field parameters.
     
    http://www.multiupload.com/3IVCNBP98S
     
    The MA arrow only has color when the stoch is at or above 80 or below 20. Otherwise it is grey in color. The color of the arrow is still ONLY related to the PA relative to the 2 moving averages and only gets color when the stoch is overbought or oversold. The color of the arrow does not say anything about the stoch other than the fact that it outside of the 20 -80 range, so for example, it is up to you to manually check that the Price is overbought if you wish to go short.
     
    Also spread is now displayed in brackets next to the currency pair.
     
    Enjoy.
  3. Like
    wonder833 reacted to kennyhubbard in (REQ Plz) Simple Take Profit EA based on Bollinger Bands   
    Ok, herewith version 2 of the dashboard......slowly getting there.
     
    http://www.multiupload.com/UVG8MKRP2V
     
    Please study this screenshot and read the comments below to understand what you are looking at.
     
    http://img840.imageshack.us/img840/5189/legendi.jpg
     
    On my dashboard I have enable 14 currency pairs across 6 timeframes. Notice that in my market watch window I have only the currencies diplayed that are on the dashboard. TIP : This is an easier way to load the dashboard with your desired currency pairs. Hide all the pairs that you are not trading(right click select hide). When you load the indicator first time around, it only writes the pairs in the market watch window to file. Once this is done, with the limited selection in the market watch window, you do not have to edit the CSV file......simply reload the indicator.
     
    Anyway, I digress.....the dashboard will show you information about the price action relative to the bollinger bands, the price action relative to 2 selected moving averages, as well as the appearance of a doji cross that closes outside of the 2 dev BB.
     
    Lets start with the numbers....it is quite a challenge to put across lots of data without causing confusion, so I hope I have not done so.....
     
    The general principle with the numbers are that the higher the number, the closer Price Action(PA) is to the 2 dev BB. A positive number means PA is closer to the upper band and a negative number means PA is closer to the lower band. The grey face means that PA is outside of the 14 period ATR, so in effect, it is dead. It turns to a white '1' when within the 14 peiod ATR of the BB. This is followed by a white '9' when PA is within half the 14 period ATR. The reasoning here is that '10' is the critical point, so a white 9 means that the PA is getting close to the BB.
     
    As soon as the High of a bar is breached, I have added color, so a red 10 means the the high of the current bar is above(or below '-10'), and the PA remains outside of the band. As soon as PA retraces to within the band, there is still color added, so a bar that has a high above(or a low below) but PA is still within half the 14 period ATR is represented by an orange '9'('-9'). When it retraces to between half the 14 ATR and half the 14 ATR, it display turns to an orange '1' or '-1'. So bottom line, is any number with color has a high or low outside of the BB.
     
    Now the MA indicator......Benny, I hope you gonna like this.....I have combined your request into 1 arrow that provides the same info.
     
    Simply put, when you have an UP or DOWN arrow, it means that the price action is above(UP) or below(DOWN) the 2 moving averages defined in the external inputs. If the arrow is green, it means that the PA is with-trend so the fast MA is above the slow MA for an UP arrow and VV. If the arrow is red, it means that the PA is counter trend ie the fast MA is below the slow MA for an UP arrow.
     
    If the Price action is in between the two MA's, an orange arrow is displayed, and its inclination shows the trend, so an arrow that is 45 degrees up(facing northeast), tells us the the fast MA is above the slow MA(up trend) but the PA is below the fast MA.
     
    Looking at some examples.
     
    Look at EURGBP D1 in the screenshot. This tells me that the high of the current bar has breach the upper BB and has retraced to within the band but is still close to the edge. The arrow tell me the the trend is down and the PA is between the two moving averages.
     
    Look at USDCAD H1. The high has breached the upper band and the PA is still outside of the band. The PA is above both moving averages but is counter trend since the fast MA is below the slow MA.
     
    At the same time on the USDCAD H4 the PA is also outside the upper band but this time the PA is below the 2 MA's but this is with-trend, so its a green arrow.
     
    Oh, I almost forgot. If there is a doji(open to close within 2 pips by default), a blue(actually aqua) cross is displayed next to the MA arrow.
     
    Anyway, hope it helps. Enjoy.
  4. Like
    wonder833 reacted to chrisbenjy in Code 'maximum trade per direction'   
    Here hope this helps:
     
    Paste this somewhere outside of any other methods/functions
     

    [size="1"]int LastTradeOP() //Function that finds the order type of the last trade { if(OrderSelect(0,SELECT_BY_POS,MODE_HISTORY)==true) //Selects the last trade from Account History { if(OrderType()==OP_BUY) { return(1); //LastTradeOP()==1 if it was a long trade } if(OrderType()==OP_SELL) { return(2); //LastTradeOP()==2 if it was a short trade } } return(0); //LastTradeOP()==0 if there are no trades }[/size]
     
    Add this to the long conditions

    [size="1"]&& (LastTradeOP()==2 || 0)) // One of the long conditions is that the last trade was a short or there was no trade[/size]
     
    Add this to the short conditions

    [size="1"]&& (LastTradeOP()==1 || 0)) // One of the short conditions is that the last trade was a long or there was no trade[/size]
     
    Read the comments in the code to understand what it does.
    (Sorry it is so small; it's so that the code does not getting broken up into several lines.
     
    Chris
×
×
  • Create New...