{"id":3240,"date":"2011-07-22T23:04:10","date_gmt":"2011-07-22T23:04:10","guid":{"rendered":"http:\/\/www.amibroker.org\/userkb\/?p=3240"},"modified":"2011-07-23T09:00:50","modified_gmt":"2011-07-23T09:00:50","slug":"a-subliminal-intraday-trading-tool","status":"publish","type":"post","link":"http:\/\/www.amibroker.org\/editable_userkb\/2011\/07\/22\/a-subliminal-intraday-trading-tool\/","title":{"rendered":"A Subliminal Intraday Trading Tool"},"content":{"rendered":"

Subliminal Messaging<\/h3>\n

Subliminal messaging involves presenting messages below perceptible visual and auditory levels. Visual messages are displayed for durations too short to be perceived consciously, but long enough to be perceived subconsciously. Auditory subliminal messages are presented with a volume level too low to be heard consciously, but high enough to be heard subconsciously. The assumption is that exposing your subconsciously mind to a repetitive subliminal message, for example “BE HAPPY”, will eventually influence your mood and make you a happier person. The program presented here can present perceptible as well as subliminal messages, audibly and visually, with the aim of improving your trading skills.To read more about Subliminal Messaging visit WikiPedia-Subliminal stimuli<\/a>.<\/p>\n

The purpose of this tool<\/h3>\n

It has happened to all of us that we place an order only to realize too late that we forgot to check some critical indicator or parameter. Haphazard chart inspections and random system checks result in a lack of confidence, is stressful, delays your action, leads to errors, and will eventually cost you money. <\/p>\n

If you are always fully aware of all factors that influence your trading decisions you will trade with greater confidence, greater expediency, less stress, and hopefully with greater profitability. <\/p>\n

It is hoped that the tool presented here can help you develop such professional trading habits. <\/p>\n

How to use this tool<\/h3>\n

First you create a checklist of all the tasks you should remember to do but that you are likely to forget. Messages are entered in csv format using a ParamStr(). Use commas to separate messages. Messages should be as short as possible, make them only as long as is needed to make you remember the tasks to perform. <\/p>\n

The program reads messages from this checklist and displays them, or reads them to you, at periodic intervals. Messages can be presented sequentially or randomly. To learn you must comply with each prompt. <\/p>\n

You can buy similar programs and they seem to work. It seems logical that if you routinely perform the tasks prompted for, these will eventually become habitual. Good practice is, when you get a prompt, to take note if you are already aware of the condition prompted for. This will give you an idea of how good or bad your trading habits are. Eventually you should already know all conditions you are prompted for.<\/p>\n

Try to keep the list moderately short so that there is not too much time between the same message. Place the visual prompts at a location where you most often look at your chart, that way they are less of a distraction and can be read more easily and quickly. Use font properties that lets you read the messages at a glance. You should periodically go over the checklist and remove\/replace prompts you no longer need. <\/p>\n

Technical considerations<\/h3>\n

To experiment with subliminal sound levels you can set your speaker volume to a barely audible level (at very close range) and then gradually increase their distance until the sound level becomes imperceptible. There are no technical limitation with respect to subliminal audio messaging.<\/p>\n

If you have enabled a timed refresh rate of 0.1 second you can obtain a guaranteed minimum message duration of 100 milliseconds. This may be brief but this is not subliminal. If you trade high liquidity instruments and set Preferences -> Intraday -> Real-time chart refresh interval to zero, you might be able to further reduce the message display time and reach subliminal durations. <\/p>\n

You can adjust text and background colors in the parameter window. To make messages appear more subliminal, or less obtrusive, you can reduce their contrast with the background. You can do this by setting the text-color to your background-color, clicking ‘more’ at the bottom of the color menu, and then use the color slider to shift the color to select the desired contrast. Here is an example of a “soft” message.<\/p>\n

\n\"\"<\/a><\/p>\n
\n

Since I prefer conscious learning, I didn’t spend much time trying to obtain true subliminal performance. However, I added adjustable parameters so that you can experiment with both subliminal and perceptible messaging.<\/p>\n

Typical messages<\/h3>\n

Below are a few arbitrary conditions you might want to check routinely before placing an order. Messages are in upper case, please substitute you own. <\/p>\n

    \nAre we in a Squeeze? BB SQUEEZE.
    \nWhat is the BB range? BB RANGE
    \nDo we have a BB breakout? BB BREAKOUT
    \nDoes the price move have volume support? VOLUME
    \nDid we have an opening gap? OPEN GAP
    \nWhere are we wrt the Open price? OPEN PRICE
    \nWhere are we wrt the previous Close? PREVIOUS CLOSE
    \nWhere are we wrt the dail Hi\/Lo? DAILY HIGH LOW
    \nWhat is the daily trend? DAILY TREND
    \nWhat is the intraday trend? INTRADAY TREND
    \nWhat is the current trade profit? TRADE PROFIT
    \nWhat is the current DD? TRADE DRAWDOWN
    \nWhat is the trading pattern for this time of day? TIME OF DAY
    \nHow long are we in the trade? TRADE DURATION\n<\/ol>\n

    Make the message as short as possible, all it needs to do is trigger your memory. You’ll have to create your own list that meets the requirements of your own trading style and system. When a message appears it reminds you to check a condition: you should always comply with the prompt. <\/p>\n

    Features you can add<\/h3>\n

    This is just a starter program for you to use as a base for further experimentation. Possible features you might like to add:<\/p>\n

      \nUsing a dynamic checklist, i.e., you add and remove items depending on market conditions, or depending on system or position status (short list are more effective).
      \nUse text colors to indicate the importance of checklist items.
      \nA button to remove the last item displayed from the checklist.
      \nBeginner and advanced lists.\n<\/ol>\n

      Programming notes<\/h3>\n

      The program selects messages randomly from a file and displays them briefly for 0-2000 milliseconds, at intervals of 5-60 seconds. You can adjust the following settings in the Parameter window;<\/p>\n

      \n\"\"<\/a><\/p>\n
      \n
      <\/span>\/\/ SubTrainer.afl\r\/\/ You may want to save this formula in an include file so that you can \r\/\/ easily append it to your system.\r<\/span>RequestTimedRefresh<\/span>( <\/span>0.1 <\/span>);\r<\/span>pxchartwidth <\/span>= <\/span>Status<\/span>( <\/span>"pxchartwidth" <\/span>);\r<\/span>pxchartheight <\/span>= <\/span>Status<\/span>( <\/span>"pxchartheight" <\/span>);\r\r<\/span>PresMode <\/span>= <\/span>ParamList<\/span>( <\/span>"Presentation"<\/span>, <\/span>"VISUAL|AUDIBLE|VISUAL AND AUDIBLE"<\/span>, <\/span>0<\/span>);\r<\/span>MsgDuration <\/span>= <\/span>Max<\/span>( <\/span>1<\/span>, <\/span>Param<\/span>( <\/span>"Display duration (mSec)"<\/span>, <\/span>200<\/span>, <\/span>0<\/span>, <\/span>2000<\/span>, <\/span>10 <\/span>) );\r<\/span>MsgInterval <\/span>= <\/span>Param<\/span>( <\/span>"Display Interval (Sec)"<\/span>, <\/span>10<\/span>, <\/span>1<\/span>, <\/span>30<\/span>, <\/span>0.5 <\/span>) * <\/span>1000<\/span>;\r<\/span>RandomMode <\/span>= <\/span>ParamToggle<\/span>( <\/span>"Display Mode"<\/span>, <\/span>"SEQUENTIAL,RANDOM"<\/span>, <\/span>1 <\/span>);\r<\/span>FontSize <\/span>= <\/span>Param<\/span>( <\/span>"Font size"<\/span>, <\/span>36<\/span>, <\/span>10<\/span>, <\/span>112<\/span>, <\/span>1 <\/span>);\r<\/span>FontName <\/span>= <\/span>ParamStr<\/span>( <\/span>"Font Name"<\/span>, <\/span>"Lucida Console" <\/span>);\r<\/span>TextColor <\/span>= <\/span>ParamColor<\/span>( <\/span>"Text"<\/span>, <\/span>colorBlack <\/span>);\r<\/span>BackColor <\/span>= <\/span>ParamColor<\/span>( <\/span>"Background"<\/span>, <\/span>colorWhite <\/span>);\r<\/span>OverLayMode <\/span>= <\/span>Param<\/span>( <\/span>"Overlay Mode"<\/span>, <\/span>1<\/span>, <\/span>0<\/span>, <\/span>2<\/span>, <\/span>1 <\/span>);\r<\/span>BackMode <\/span>= <\/span>Param<\/span>( <\/span>"Background Mode"<\/span>, <\/span>1<\/span>, <\/span>1<\/span>, <\/span>2<\/span>, <\/span>1 <\/span>);\r<\/span>XPosition <\/span>= <\/span>Param<\/span>( <\/span>"x-Position"<\/span>, <\/span>500<\/span>, <\/span>0<\/span>, <\/span>3000<\/span>, <\/span>1 <\/span>);\r<\/span>YPosition <\/span>= <\/span>Param<\/span>( <\/span>"y-Position"<\/span>, <\/span>300<\/span>, <\/span>0<\/span>, <\/span>3000<\/span>, <\/span>1 <\/span>);\r\r<\/span>CheckList <\/span>=\r    <\/span>"BB SQUEEZE,BB RANGE,BB BREAKOUT,VOLUME,OPEN GAP,OPEN PRICE,PREV CLOSE," <\/span>+\r    <\/span>"DAILY HIGH LOW,DAILY TREND,INTRADAY TREND,TRADE PROFIT,TRADE DRAWDOWN,TIME OF DAY,TRADE DURATION,"<\/span>; <\/span>\/\/ end with comma\r<\/span>Msgs <\/span>= <\/span>ParamStr<\/span>( <\/span>"CSV Message List"<\/span>, <\/span>CheckList <\/span>);\r<\/span>NumMsgs <\/span>= <\/span>StrCount<\/span>( <\/span>CheckList<\/span>, <\/span>"," <\/span>);\r\r<\/span>HRCount <\/span>= <\/span>GetPerformanceCounter<\/span>( <\/span>False <\/span>);\r<\/span>MsgTime <\/span>= <\/span>Nz<\/span>( <\/span>StaticVarGet<\/span>( <\/span>"MsgTime" <\/span>));\rif( <\/span>HRCount <\/span>> <\/span>MsgTime<\/span>) \r{\r    <\/span>StaticVarSet<\/span>( <\/span>"MsgTime"<\/span>, <\/span>HRCount<\/span>+<\/span>MsgInterval <\/span>);\r    <\/span>StaticVarSet<\/span>( <\/span>"EndMsgTime"<\/span>, <\/span>HRCount<\/span>+<\/span>MsgDuration <\/span>);\r    if( <\/span>RandomMode <\/span>) \r    {\r        <\/span>PrevMsgIndex <\/span>= <\/span>StaticVarGet<\/span>( <\/span>"PrevMsgIndex" <\/span>);\r        <\/span>MsgIndex <\/span>= <\/span>mtRandom<\/span>() * <\/span>NumMsgs<\/span>;\r        while( <\/span>PrevMsgIndex <\/span>== <\/span>MsgIndex <\/span>) <\/span>\/\/ never repeat the same index\r            <\/span>MsgIndex <\/span>= <\/span>mtRandom<\/span>() * <\/span>NumMsgs<\/span>;\r        \r    }\r    else\r    {\r        <\/span>MsgIndex <\/span>= <\/span>Nz<\/span>(<\/span>StaticVarGet<\/span>( <\/span>"MsgIndex" <\/span>)) + <\/span>1<\/span>;\r        if( <\/span>MsgIndex <\/span>>= <\/span>NumMsgs <\/span>) <\/span>MsgIndex <\/span>= <\/span>0<\/span>;\r    } \r    <\/span>StaticVarSet<\/span>( <\/span>"MsgIndex"<\/span>, <\/span>MsgIndex <\/span>);\r}\r\rif ( <\/span>HRCount <\/span>< <\/span>StaticVarGet<\/span>( <\/span>"EndMsgTime" <\/span>) )\r{\r    <\/span>MsgIndex <\/span>= <\/span>StaticVarGet<\/span>( <\/span>"MsgIndex" <\/span>);\r    <\/span>Msg <\/span>= <\/span>StrExtract<\/span>( <\/span>CheckList<\/span>, <\/span>MsgIndex <\/span>);\r\r    if ( <\/span>StrFind<\/span>( <\/span>PresMode<\/span>, <\/span>"VISUAL" <\/span>) )\r    {\r        <\/span>GfxSelectFont<\/span>( <\/span>FontName<\/span>, <\/span>FontSize <\/span>);\r        <\/span>GfxSetTextAlign<\/span>( <\/span>2 <\/span>);<\/span>\/\/ center alignment\r        <\/span>GfxSetTextColor<\/span>( <\/span>TextColor <\/span>);\r        <\/span>GfxSetBkMode<\/span>( <\/span>BackMode <\/span>); <\/span>\/\/ 1=transparent, 2=Opaque\r        <\/span>GfxSetOverlayMode<\/span>( <\/span>OverlayMode <\/span>); <\/span>\/\/ 0=Top, 1=under, only\r        <\/span>GfxSetBkColor<\/span>( <\/span>BackColor <\/span>);\r        <\/span>GfxTextOut<\/span>( <\/span>Msg<\/span>, <\/span>XPosition<\/span>, <\/span>YPosition <\/span>);\r    }\r\r    if ( <\/span>StrFind<\/span>( <\/span>PresMode<\/span>, <\/span>"AUDIBLE" <\/span>) )\r    {\r        if ( <\/span>StaticVarGetText<\/span>( <\/span>"LastMessage" <\/span>) != <\/span>Msg <\/span>) <\/span>\/\/ Say only once\r        <\/span>{\r            <\/span>Say<\/span>( <\/span>Msg<\/span>, <\/span>True <\/span>);\r            <\/span>StaticVarSetText<\/span>( <\/span>"LastMessage"<\/span>, <\/span>Msg <\/span>);\r        }\r    }\r}\r\r<\/span>Title <\/span>= <\/span>"\\n" <\/span>+ <\/span>CheckList<\/span>; <\/span>\/\/ For debug only\r<\/span><\/pre>\n","protected":false},"excerpt":{"rendered":"

      Subliminal Messaging Subliminal messaging involves presenting messages below perceptible visual and auditory levels. Visual messages are displayed for durations too short to be perceived consciously, but long enough to be perceived subconsciously. Auditory subliminal messages are presented with a volume level too low to be heard consciously, but high enough to be heard subconsciously. The […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[142],"tags":[],"_links":{"self":[{"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/posts\/3240"}],"collection":[{"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/comments?post=3240"}],"version-history":[{"count":74,"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/posts\/3240\/revisions"}],"predecessor-version":[{"id":3317,"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/posts\/3240\/revisions\/3317"}],"wp:attachment":[{"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/media?parent=3240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/categories?post=3240"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/tags?post=3240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}