Looking for an indicator..

FTMO Trader Scouting
TopFroxx said:
yes exactly. i was going to say that but thought just a number "5" instead of "5/6" is easier tp code. i am really starting to feel guilty you know. seems like a lot more work than i thought in the beginning!

Yes, although no reason to feel guilty as I strongly suspected that this was going to happen, so no surprise, refer to my initial comments.
 
TopFroxx said:
yes exactly. i was going to say that but thought just a number "5" instead of "5/6" is easier tp code. i am really starting to feel guilty you know. seems like a lot more work than i thought in the beginning!

Finally had some time to spend a good half day on the code.

Attached is latest version (D6) and three screen shots.

Have a play, I'm sure there will be some questions.

Note that I have placed the timestamps 'in' the Entry line. Just pace the cursor on the end the thick Lime or Magenta line and you will see what I mean. These Entry lines will stay on the chart after exit Additionally they are selectabble, hence can be removed..
 

Attachments

  • AboveBelow - penultimate trigger.png
    AboveBelow - penultimate trigger.png
    31.3 KB · Views: 70
  • AboveBelow -  trigger Long.png
    AboveBelow - trigger Long.png
    33.3 KB · Views: 56
  • AboveBelow -  trigger Short.png
    AboveBelow - trigger Short.png
    33.2 KB · Views: 69
  • AboveBelow-D6.ex4
    66.2 KB · Views: 48
Just realised that I did not correctly load the TimeStamp variables into the Line.

The attached will show the TimeStamps in the Entry Line description ie thick Lime and Magenta lines.

The lines can be removed. Notes that they will then (only) be regenerated for that Alert (better term than Alarm) when all the Triggers (eg +100 -20 etc) become and remain initialized.

The Entry line will be automatically removed when the expiry time for that Alert is hit. All ten Alerts have an expiry of 7200 M1 Bars ie about a week, depending upon Trading Days. This can be User modified for each Alert. Needs testing.

The behavior of the Entry lines (potential five Short and Five Long) is a matter of preference, so test it for a few weeks and let me know of any changes or additional features required.
 

Attachments

  • AboveBelow-D7.ex4
    67.7 KB · Views: 44
hey rod. the timestamp on the entry line on the chart is not correct. refer to attached screenshot. doesnt seem to use the current time
 

Attachments

  • timestamp.png
    timestamp.png
    12 KB · Views: 52
TopFroxx said:
hey rod. the timestamp on the entry line on the chart is not correct. refer to attached screenshot. doesnt seem to use the current time

Yes, it is using time 0

Somehow I did not correctly update the file.

Attached is what I should have sent you previously.
 

Attachments

  • AboveBelow-D9.ex4
    67.6 KB · Views: 52
looking good. timestamps are working. and the counts also seem correct. so at the moment i do not have anything to criticize. thanks :)
 
yay. just got my first signal.

do you have any interest in seeing the signals i get with this indi? if so, i will post them as they come. might start a journal thread, maybe better than spamming this thread.
 
TopFroxx said:
yay. just got my first signal.

do you have any interest in seeing the signals i get with this indi? if so, i will post them as they come. might start a journal thread, maybe better than spamming this thread.

Sure, interested to see the application of the indicator
 
now that i think about it i dont think that a thread would be very useful. i dont have much to say to each trade. i have backtested certain sets of conditions and found 3 sets in particular that gave quite stable returns over the past ~7 years, in- and out-of-sample.
i just post a couple of trades here, though i do not want to reveal the condition sets yet.
as can be seen on the chart i got a long signal yesterday. it was jumping around 6of8 and 7of8 conditions met and i looked at the chart a bit more frequently until it finally gave the signal. so the number of conditions met already really helped :)
i just realized that the expiry isnt correct. it should show "10:34 Mon09Jun2014" and not 14:31, since i plugged in 7200 1 minute bars. and i checked, including the sunday i have five full 24 hour days with my broker.
anyway, going to hold this trade until next monday, SL is 115 pips, ~1.35.
feelings about this trade: fiber not looking bullish at all, ECB with an expected rate cut comming up, NFP on friday. might be that most of it is already priced in and an actual rate cut wont do much anmore. but overall i dont have the best feeling about this trade.
 

Attachments

  • abovebelowsignal.png
    abovebelowsignal.png
    36 KB · Views: 59
TopFroxx said:
i just realized that the expiry isnt correct. it should show "10:34 Mon09Jun2014" and not 14:31, since i plugged in 7200 1 minute bars. and i checked, including the sunday i have five full 24 hour days with my broker.

suspect due to data gaps or Sunday candle etc. Only way to confirm is the tedious testing on 10...7200

other option is to use TradeTimeExpirySeconds0 eg 432000 (7200*60) or 604800 (7*24*60*60). To enable set UseTradeTimeExpiryBars to false

EDIT: tested on 10 bars and the expiry was correct, so may be a weekend or data gap issue, which would not be apparent over 10 bars.
 
Further investigation indicates that there may me an issue with the expiry time bars when the expiry runs into the next day. Something perplexing here about how MT4 handles datetime. Maybe and integer datetime conversion issue.
 
Attached is the revision. This is interim, as I have decided to enhance the functionality of the TimeStamp line, which will probably take a week or so.

In this revision I've enhanced the TimeStamp format, which can be selected with DateStringMask=?. A number will produce different TimeStamp date formats, for NEW TimeStamps. I've set the default to 1, which is the same format as used by MT4 default, with the addition of a DayName prefix. The formats are -
if(dateType ==0) // 2014.06.02 10:52
else if(dateType==1) // Thur 2014.06.02 10:52 //default
else if(dateType==2) // Thur 2014Jun02 10:52
else if(dateType==3) // Thr 10:52 02Jun2014
else if(dateType==4) // 02Jun2014
else if(dateType==5) // 10:52 Thr02Jun2014
else if(dateType==6) // 2014.06.02
else if(dateType==7) // 10:52 02Jun2014
else if(dateType==8) // 10:52
else if(dateType==9) // Thr10:52
else if(dateType==10) // 1401706320 // seconds from 1Jan1970
else // 2014.06.02 10:52

The major change in this interim revision is the use of Time, rather than Bars to determine the TimeStamps Expiry. Hence one week will become 10080 minutes. The use of bars is problematic due to the way MT4 implements Time. It can be done, although requires a routine to resync. I'll have a look at this later. as well as the other enhancements.

Needless to say that this all needs substantial testing.----
 

Attachments

  • AboveBelow-E1.ex4
    66.4 KB · Views: 37
cheers rod.

trade update: this is the magic of backtested "optimal" SL placement. price came within 10 pips of my SL. additional info: that happened quite often in the backtests as well.
1.3650 looking super vulnerable right now. if we dont take it today we will tomorrow during NFP. overall i now think that this trade will end in profit on monday.
edit: well, that was a bit faster than expected :)
 
TopFroxx said:
cheers rod.

trade update: this is the magic of backtested "optimal" SL placement. price came within 10 pips of my SL. additional info: that happened quite often in the backtests as well.
1.3650 looking super vulnerable right now. if we dont take it today we will tomorrow during NFP. overall i now think that this trade will end in profit on monday.
edit: well, that was a bit faster than expected :)


Attached is a substantially revised version

New features
- can drag chart lines to dynamically reset expiry time
- line text dynamically recalculates time remaining to expiry
- line Trigger and Expiry vertical text on line - can be disabled if too many triggers (messy)
- line colors can be differentiated with ColorShift - disabled by default
- lines extend on chart to match time left to expiry eg refer image H4 , the expiry line extends over the full week, with vertical text.
- Expiry Time can be set on any standard MT4 period, excluding MN1.
- All Expiry Times are set as Times, not completed Bars.
- plus several bug fixes that I will not bore you by explaining.


Have a play and feel free to ask for further explanation.
 

Attachments

  • AboveBelow F3 image.png
    AboveBelow F3 image.png
    46.8 KB · Views: 63
  • AboveBelow-F3.ex4
    83.2 KB · Views: 41
rod178 said:
Attached is a substantially revised version

New features
- can drag chart lines to dynamically reset expiry time
- line text dynamically recalculates time remaining to expiry
- line Trigger and Expiry vertical text on line - can be disabled if too many triggers (messy)
- line colors can be differentiated with ColorShift - disabled by default
- lines extend on chart to match time left to expiry eg refer image H4 , the expiry line extends over the full week, with vertical text.
- Expiry Time can be set on any standard MT4 period, excluding MN1.
- All Expiry Times are set as Times, not completed Bars.
- plus several bug fixes that I will not bore you by explaining.


Have a play and feel free to ask for further explanation.

cheers again rod, will have a look on monday. have a good weekend!
 
Forgot to mention another feature:
- I've separated CountBarsStart and CountBarsExpiry. This enables the triggering on Alerts earlier than latest previous Bar close (ie Close[1])

For example CountBarsStart=1440 (ie one day), instead of CountBarsStart=1, and CountBarsExpiry=1 would produced an expiry (if triggered) of 6 days instead of 7days.
 
TopFroxx said:
cheers rod.

trade update: this is the magic of backtested "optimal" SL placement. price came within 10 pips of my SL. additional info: that happened quite often in the backtests as well.
1.3650 looking super vulnerable right now. if we dont take it today we will tomorrow during NFP. overall i now think that this trade will end in profit on monday.
edit: well, that was a bit faster than expected :)

trade was closed for -22 pips. it's fine, considering it got that close to my SL. got a new long signal late friday from 1.3533.
 
FTMO Trader Scouting
Back
Top