Welcome to TDesk. Read this to get started.

Welcome to TDesk. Read this to get started.

Postby SteveHopwood » Sat Sep 22, 2018 12:58 pm

Welcome to Thomas' TDesk. TDesk is just under three weeks old at the time I write this - 22nd September 2018. Its potential is staggering.

TDesk:
  • takes information provided by compatible indicators.
  • puts this all together to generate buy, sell and close signals.
  • shows these signals in a dashboard so we can see at a glance what is going on.
  • facilitates quick and easy chart opening and closing - you will love that.

Here is a picture of TDesk on one of my demos. It is trading Wavegarrick's system - one of the quick-and-easy starts I have linked further down. You might need to open it in a separate tab to see the details:
Coming to like this very much.png


  • The colors of the currencies in the trade pairs indicate the relative strength/weakness of these currencies. Click on the first or the second currency of a pair to filter the display to just the pairs containing that currency in the pair.
  • Clicking the >> icon next to the pair opens that chart.
  • The Multi Signal column:
    • Shows how strong or weak the pair is. TDesk examines the signals for all pairs involving either of the currencies in the pair:
      • A value of >50 shows a strong buying bias and suggests it is time to close sell trades.
      • A value of <50 shows a strong selling bias and suggests it is time to close buy trades.
      • A yellow square shows that the spread is unusually wide, so do not trade just yet.
  • The Signal Age column shows how long ago the signal was generated.
  • The Solo Signal column shows what percentage of your indicators are lining up. To start thinking about taking trades:
    • Solo signal should be 100%.
    • The Multi Signal value should be >50 for a buy and < 50 for a sell.
  • The next three columns show the combination of indicators on my charts. They are are Baluda SuperSlope TD showing their direction on D1, H4 and H1.
  • TDesk will also show the state of your trades.
  • The News Offset column tells you how long it is until the next news release. The News Content is the release that is coming up. I have this on a high impact setting so there is not a lot to show.

NOTE:
The signals columns from the indicators do not always show as they do in my picture when you first load TDesk. The picture is of V 2.5 and we are up to V5; this has an extra column - "Super signal". Clicking this, "Multi signal", or "Solo signal" will display the columns.

Getting started:

    Quick and easy setups to get you going:
    • One from Thomas and download the template from post 2.
    • A Wavegarrick system Leon (Wavegarrick) is one of SHF's best traders so his ideas are usually good ones. Scroll down post 1 to the "Section 2 - TDesk: (26/09/18)" section of post 1.
    • One from me.

Remember to subscribe to the relevant threads so you receive notice of updates. These will be frequent.

Thomas describes a number of features in subsequent posts. This thread is the TDesk User Guide:
  • Post 2: How TDesk calculates the overall signal.
  • Post 3: TDesk's inputs.
  • Post 4: What to do when an indi does not load.
  • Post 5: How to interact with TDesk.
  • Post 6: How to use the TDesk "Trade Advice" feature
That's it folks. Have loads of fun with this stuff.

Thank you Thomas. This is a work of genius. :clap: :clap: :clap: :clap: :clap: :clap: :clap:

:xm: :rocket:
You do not have the required permissions to view the files attached to this post.
Read the effing manual, ok?

Global Prime is the official SHF broker. Click here to sign up for a live account with Global Prime and join the several thousand SHF members who wisely choose GP as their broker of choice.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. [email protected] is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Tommaso (milanese) for all the incredible work he does here.
User avatar
SteveHopwood
 
Posts: 9095
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

How the TDesk Signals gets calculated

Postby tomele » Mon Sep 24, 2018 6:10 pm

TDesk calculates four signals for each pair:

* Solo Signal
* Multi Signal
* Veto Signal
* Super Signal

All signals are memorized over the re-initialization of TDesk (by changing timeframes or restarting the terminal).

Incoming signals can get inverted. You can use that feature if you want specific signals to be contrary to the trend, like for retraces.

Incoming directional signals can get nullified (set to NONE). They then can have only two states: NONE or FLAT. This way you can define true "Risk On, Risk Off" signals and block trading at all or exit all positions.


Solo Signal

The calculation of the Solo Signal is very simple.

The signal goes from flat to directional once it reaches the entry threshold. It goes back to flat only when the exit threshold is undercut again.

Each incoming LONG signal is counted as +1, each SHORT signal as -1 and each FLAT signal as 0. NONE signals are ignored. The sum is then divided by the number of signals.

Now let's assume we have 7 incoming signals. Let us imagine HGI on 2 time frames and SuperSlope on 3 time frames. We then could have:

7 of 7 LONG signals are 7/7=100%
6 LONG and 1 FLAT are 6/7=86%
5 LONG and 2 FLAT are 5/7=71%
6 LONG and 1 SHORT are 5/7=71%

If you have set the exit threshold to 70%, all the above would not give you an exit signal after the entry signal was reached. You would need 3 FLAT (4/7=57%) or 1 FLAT and 1 SHORT (4/7=57%) or 2 SHORT signals (3/7=43%) to fall below 70% again.


Multi Signal

It is calculated very similar to Solo Signal, but takes into account the overall currency strength/weakness. While Solo Signal is computed on basis of the signals for one symbol only, there is so much more information in the matrix. Multi Signal connects the dots with a much longer rope, taking into account all signals of all pairs containing one of the two currencies.

An example: Lets say we look at GBPJPY and have 10 signals for 28 pairs, all together 280 signals. Solo Signal is calculated from the 10 signals of GBPJPY. Multi Signal is calculated from all 130 signals of all pairs having GBP and/or JPY as one of their antagonists. This way we take in account how the two currencies are behaving generally.


Veto Signal

You can tell TDesk to treat one or more incoming signals as Veto Signals. Veto Signals are superior to the rest as they all must agree on the same direction. TDesk will not decide against any Veto Signal. All of the Veto Signals must be in the same direction before a LONG or SHORT Super Signal will be generated.

There is another special group of signals that can force the trading EA to exit from all positions if the signals disagree or are opposite to the net lot size of all open positions. Your inputs define which of the incoming signals will be treated as Exit Signals.


Super Signal

This is the final trade signal being calculated by combining Solo, Multi and Veto Signals. It can take in account only the Solo Signal or the Multi Signal, it can combine both by a logical AND or OR with respect to entry and exit. Finally it takes in account the Veto and Exit Signals, if any given. See this thread for the input settings: http://www.stevehopwoodforex.com/phpBB3 ... 36#p163925.

The SuperSignal is not allowed to change when the underlying signals are blocked by spread or news, but is immediately updated as soon as the condition has cleared.

TDesk publishes the Super Signals via global variables for other experts to trade by them.


Cheers
Thomas
Happy pippin, Thomas ;)

It ain't what you don't know that gets you into trouble.
It's what you know for sure that just ain't so.
(Mark Twain)

Join the new era of EA testing: FXTestify
Keep the coder going: Donate
User avatar
tomele
 
Posts: 1083
Joined: Tue May 17, 2016 3:40 pm
Location: Germany, Forest of Odes, Defending the Limes

What the TDesk Inputs mean

Postby tomele » Mon Sep 24, 2018 6:59 pm

Here are some explanations of the TDesk inputs

Important note: Hiding/showing any columns in the dashboard has no effect on signal generation. All signal generation aspects are driven by the respective inputs independent from the dashboard settings.


General settings

SetupName
If you are running multiple terminals with TDesk and want to distinguish their alerts, enter unique setup names here.

RefreshSeconds
TDesk is refreshed in this interval to save CPU resources.

TradesMagicNumber
The magic number of the trading drone and thus the trades in the dashboard. "-1" means all.

SignalsMagicNumber
The magic number of the indicator drones and thus the signals. "-1" means all.

PairsToTrade
Enter the pairs TDesk shall show and manage. Do not add prefix or suffix.

SymbolPrefix
Enter your broker's symbol prefix here.

SymbolSuffix
Enter your broker's symbol suffix here.

ReservedPair
Enter the symbol of charts you use for other purposes like Rene's fantastic TradeReport and TradeChart. Do not add prefix or suffix. This symbol will be excluded from chart management. TDesk knows and excludes his own chart without this input.

TradesStartDate
Restrict profit calculations to a certain time span by entering a start date.

HiddenColumnAlerts
TDesk will alert you on startup when any columns involved in signal generation are hidden in the dashboard. You can disable these alerts here.


EAX PIN settings

UseEaxPins
Whether to use EAX-PINs or not.

EaxPinDescriptors
EAX-PINs have one big drawback. They don't tell TDesk anything about the indicator name or the time frame used. They are just named "Pin1", "Pin2", "Pin3" and so on. This input offers the remedy as you will associate all PINs with descriptors like those you are used from TDesk.

TDesk can use up to 8 EAX-PINs. The input section of each PIN indicator has a field for the PIN number. You must give all PINs you want to use in TDesk unique numbers between 1 and 8. PINs outside the range will simply be ignored. For each PIN you must also enter a descriptor in this TDesk list.

This list is a comma-separated enumeration of "<pin number>/<indicator acronym>/<time frame>" descriptors and must look like "5/ADX/M15, 3/RSI/H1". The sequence of the descriptors is irrelevant. Indicator acronyms must have at least 2 and should not exceed 5 characters. Time frames must follow the usual MQL4 notation. You can use spaces to make the list more readable. The list is limited to 100 characters (without spaces) due to technical reasons. If you don't follow the specifications exactly, TDesk will be extremely nasty to you.

Use somewhat speaking indicator acronyms, not just "PIN". Otherwise nobody can tell which indicators were used. As an example, have a look at the post behind this link. The EAX-PINs offered there could be named "10BAR", "ADX", "MEGA", "SDTR", "SNR", "FIBZ","TRAIL", "MUX", "TDI" and so on.


New chart settings

ChartTimeFrame
New charts will be opened with this timeframe.

TemplateName
New charts will be opened with this template applied.

OpenChartsMinimized
Whether new charts will be opened minimized.

OpenDelaySeconds
Empty4 has problems to open the charts in exactly the order it is told. By slowing it down a bit, the charts get arranged properly. The default 0f 0.3 seconds is right for my machine. If your charts are still messed up, increase it step by step. If you care more about speed than chart sequence, set it to 0.


Trade pairs

ColourCurrenciesByStrength
ColourCurrenciesThreshold
The currencies in the trade pairs can be coloured according to their overall strength. If they are above/below the threshold, they are considered strong or weak.


Signal appearance

FlatSignalSymbol
Choose a symbol for indicating FLAT signals. A true gimmick.

EmphasizeFreshSignalValues
Whether to print directional signals "bold" when TDesk signals are shown as values.

DetailSignalColumnWidth
Configure the width of all incoming signal columns with respect to the length of the headers.


Super signals

ShowSuperSignals
Whether to show the "Super Signal" entry/exit recommendation. Nothing gets functionally disabled by this. Read more in this post.

OverlayVetoSignals
TDesk can overlay the Super Signals with the Veto Signal in the Super Signal column to show even more information. You can enable/disable that feature here.

SuperSignalsEntryOperator
SuperSignalsExitOperator
Define how to calculate the Super Signals from Solo and Multi Signals. They can be MultiSignalsOnly, SoloSignalsOnly, MultiANDSoloSignals, MultiORSoloSignals. You can mix them to your heart's content, but don't set both operators to MultiORSoloSignals. You would never get entry signals as the entry condition also is the exit condition. If you don't understand this, think a bit.

Setting them to MultiSignalsOnly or SoloSignalsOnly forces them to strictly follow the respective signal only. Super Signal and the underlying signal will be identical.

Setting them to MultiANDSoloSignals means both signals must reach their EntryThreshold for a directional signal or both must be equal or less than their ExitThreshold to give you an exit signal.

Setting them to MultiORSoloSignals means that one of the signals must reach its EntryThreshold for a directional signal or one of them must be equal or less than its ExitThreshold (after both had been above their EntryThreshold) to give you an exit signal.

ShowSuperSignalsAge
MaxMultiSignalsAgeMinutes
Whether to show the signal ages and when to automatically clear them in order to point you to relatively fresh signals only. Setting the second input to "0" disables the automatic clearing.

SendSuperSignalsAlerts
Whether to send alerts on signal changes.

DrawSuperSignalsOnCharts
Whether to draw the signals as well as a price line on the respective trading charts.

BroadcastSuperSignals
Whether to broadcast the signals as well as other data via global variables for other experts to trade with this information.


Multi signals

ShowMultiSignals
ShowMultiSignalsAsValues
MultiSignalsEntryThreshold
MultiSignalsExitThreshold
Whether and how to show the "Multi Signal" entry/exit recommendation and how it is calculated. Nothing gets functionally disabled by this. Read more in this post.

ShowMultiSignalsAge
MaxMultiSignalsAgeMinutes
Whether to show the signal ages and when to automatically clear them in order to point you to relatively fresh signals only. Setting the second input to "0" disables the automatic clearing.

SendMultiSignalsAlerts
Whether to send alerts on signal changes.

DrawMultiSignalsOnCharts
Whether to draw the signals as well as a price line on the respective trading charts.


Solo signals

ShowSoloSignals
ShowSoloSignalsAsValues
SoloSignalsEntryThreshold
SoloSignalsExitThreshold
Whether and how to show the "Solo Signal" entry/exit recommendation and how it is calculated. Nothing gets functionally disabled by this. Read more in this post.

ShowSoloSignalsAge
MaxSoloSignalsAgeMinutes
Whether to show the signal ages and when to automatically clear them in order to point you to relatively fresh signals only. Setting the second input to "0" disables the automatic clearing.

SendSoloSignalsAlerts
Whether to send alerts on signal changes.

DrawSoloSignalsOnCharts
Whether to draw the signals as well as a price line on the respective trading charts.


Special signals

All lists in this section must be comma-separated enumerations of incoming signals. Enter the descriptors of the signals exactly as they appear in the TDesk dashboard top text or signal column headers like "HGI-2/M15, RSI-X/H1, RSI-X/M30". You can use spaces to make the lists more readable. All lists are limited to 50 characters (without spaces) due to technical reasons.

For some of the list, there is also a "...Logic" field. Here you can select how the signals of that list get connected (if you have more than one). Possible inputs are "any", "most" and "all". Their meaning is:

* any: at least one of the signals must fulfill the condition
* most: more than half of the signals must fulfill the condition
* all: all of the signals must fulfill the condition

InvertIncomingSignals
This list lets you define which signals will be inverted (changed to the opposite). You can use this feature to define signals that you want to be AGAINST the overall signal situation, like for trading retraces.

NullifyDirectionalSignals
Signals on this list can have only two states: NONE or FLAT. Incoming directional signals get nullified (set to NONE) by TDesk. This way you can define true "Risk On, Risk Off" signals and block trading at all or exit all positions together with the VetoOnDisagreeSignals and ForceExitOnDisagreeSignals lists.

ExcludeFromSoloSignals
ExcludeFromMultiSignals

These lists let you define which signals will be excluded from the Solo and/or Multi Signals calculation.

VetoOnDisagreeSignals
VetoOnDisagreeLogic

This list and logic input let you define which signals will veto (force FLAT) the Super Signal if they disagree (meaning they are FLAT or opposite to the Super Signal). You can also select the logic to connect the signals, should you have more than one.

VetoOnOppositeSignals
VetoOnOppositeLogic

This list and logic input let you define which signals will veto (force FLAT) the Super Signal if they are opposite to the Super Signal. You can also select the logic to connect the signals, should you have more than one.

ForceExitOnDisagreeSignals
ForceExitOnDisagreeLogic

This list and logic input let you define which signals will force the trading EA to exit from all positions if the signals disagree (meaning they are FLAT or opposite to the net lot size of all open positions). You can also select the logic to connect the signals, should you have more than one.

ForceExitOnOppositeSignals
ForceExitOnOppositeLogic

This list and logic input let you define which signals will force the trading EA to exit from all positions if the signals are opposite to the net lot size of all open positions. You can also select the logic to connect the signals, should you have more than one.


As this might look complicated, it in fact isn't. Here is an example to clear it up a bit: Let's assume you trade some entry/exit logic based on HGI and RSI on the H1 time frame. It is using the Solo and Multi Signals and works fine. Now you want to add a rule that it should not take new positions when ADX or STO7 are flat or opposite on D1 and you want to close all positions if both of them are opposite. But you don't want them to influence your H1 trading rules as that worked good before. What you would do then:

* ExcludeFromSoloSignals: ADX/D1, STO7/D1
* ExcludeFromMultiSignals: ADX/D1, STO7/D1

* VetoOnDisagreeSignals: ADX/D1, STO7/D1
* VetoOnDisagreeLogic: any

* ForceExitOnOppositeSignals: ADX/D1, STO7/D1
* ForceExitOnOppositeLogic: all


ShowVetoSignals
Whether to show the "Veto Signal" columns. Nothing gets functionally disabled by this. Read more in this post.

ShowVetoSignalsAge
MaxVetoSignalsAgeMinutes
Whether to show the signal ages and when to automatically clear them in order to point you to relatively fresh signals only. Setting the second input to "0" disables the automatic clearing.

ResetAllSignalsOnExit
This is set to "True" as default and forces the Solo and Multi Signals to FLAT when an EXIT signal is present. This way, all the signals have to reach their entry threshold again before new directional signals are created after an EXIT condition.

SetMissingSignalsToFlat
Setting this input to true causes all signals to be initialized with a default of FLAT instead of NONE. Thus signals that are NONE get replaced wiht FLAT. This must only be used in rare cases where signal drones send NONE instead of FLAT.


Order columns

ShowTradeColumn
ShowPendingColumn
ShowPipsColumn
ShowCashColumn
ShowSwapColumn
All those columns showing the details of your trades or pending positions can be hidden here. Nothing gets functionally disabled by this.


Spread column

ShowSpreadColumn
The actual spread column can be hidden here. Nothing gets functionally disabled by this.

AbnormalSpreadThreshold
PossibleStopHuntThreshold
These inputs enable you to modify the spread alerts. Change these if you want the alerts to be more or less nervous. The thresholds are factors the spread must rise above the average or longterm spread. TDesk keeps a running record of these spread averages for each pair. You can see the values by clicking the spread column header to unfold detail columns.

SpreadsBlockSignals
TDesk has algorithms to detect abnormal spreads and possible stop hunts. TDesk can block the signals and displays a warning sign (square) when such conditions are detected for a symbol. Enable/disable that function here.


News column

ShowNewsColumn
The news offset column can be hidden here. Nothing gets functionally disabled by this.

NewsRefreshMinutes
The interval to retrieve the calendar from the internet.

MinimumNewsImpact
Only news equal or above this impact will be shown.

MaximumNewsMinutes
Only news occuring at or before this offset will be shown.

NewsBlockSignals
TDesk can block (freeze) Super Signals and displays a warning sign (square) when news are detected for a symbol. There are 3 levels of signal blocking:

* BlockNone: Signal blocking is deactivated
* BlockAll: Super Signals get frozen until the condition has vanished
* BlockEntries: Super Signals may not become directional while blocked

BlockBeforeNewsMinutes
Signals will be blocked when upcoming news are within this timespan.

BlockAfterNewsMinutes
Signals will be blocked when expired news are still within this timespan. The dashboard news columns will still show expired news with a negative offset as long as they block signals.

ExitAllTradesWhenBlocked
TDesk can automatically send an EXIT signal as soon as a pair gets blocked by news. You can enable/disable that feature here.[/color]


Dashboard details

ShowSignalDetails
ShowTradeDetails
ShowPendingDetails
ShowPipsDetails
ShowCashDetails
ShowSwapDetails
ShowSpreadDetails
ShowNewsDetails
Which columns to show/hide on startup of TDesk. Nothing gets functionally disabled by this.


Dashboard alerts

AlertOnFlatSignals
AlertOnExitSignals
Both default to true. Set them to false to filter the respective alerts and get less annoyed.
EnablePopupAlerts
EnableEmailAlerts
EnablePushAlerts
Which alerts to send to you when the overall signal changes.

AlertOnFlatSignals
AlertOnExitSignals
Both default to true. Set them to false to filter the respective alerts and get less annoyed.


Trade advice

CalculateTradeAdvice
Whether to calculate SL/TP simulations each night.

ActualSetupStartDate
Used for restricting the start date of the simulation when you have changed your entry logic.

MinimumTradeDays
MaximumTradeDays
Trades are only respected in the simulation if their age lies between these two values.

MinimumTradeCount
MaximumTradeCount
The simulation is only valid if it covers the minimum number of trades. It is restricted to a maximum number of trades.

MaximumStopLoss
MaximumTakeProfit
SimulationStepSize
These parameters define the size and granularity of the simulation.


History writing

WriteHistoryFiles
StrategyFolderName
Whether TDesk will collect and write the signal history to disk and to which folder under MQL4/Files to write the data.


Dashboard appearance

DisplayX
DisplayY
Where the upper left corner of TDesk output will start on the screen.

ScaleX
ScaleY
Shrink/expand TDesk with respect to your screen size.

FontSize
FontName
Configure the TDesk font.

ShowCompactView
This input enables a very compact single-line version for the top lines above the dashboard.

ShowInfoText
Whether to show the informational lines above the table. Only relevant if ShowCompactView is false.

ShowBriefingText
Whether to show the advisory line above the table. Only relevant if ShowCompactView is false.

ColorizeTopTexts
Whether to pimp the top texts by some colors. Only relevant if ShowCompactView is false.

ShowBottomButtons
Whether to show the bottom buttons of TDesk.

Dashboard colors

BackgroundColor
TDesk manages the chart background and disables/hides everything that is not needed. You can disable that function by setting BackgroundColor to clrNONE.

TextColor
HighlightColor
TitleColor
ButtonColor
TradePairColor
Choose colors for text and headers, buttons, symbols and table text.

NoSignalColor
UpSignalColor
DnSignalColor
VetoSignalColor
DimUpSignalColor
DimDnSignalColor
Choose colors for signals and trade pairs (when coloured).

HeadColor
RowColor1
RowColor2
RowColorClicked
Choose background colors for table rows.

PosNumberColor
NegNumberColor
PosSumColor
NegSumColor
Choose colors for numbers and sums in the table.

LowAlertColor
MediumAlertColor
HighAlertColor
Choose colors for spread events and news warnings.

WindowTitleColor
WindowHighlightColor
WindowTextColor
Choose colors for text elements in windows.


Cheers
Thomas

:rocket:
Happy pippin, Thomas ;)

It ain't what you don't know that gets you into trouble.
It's what you know for sure that just ain't so.
(Mark Twain)

Join the new era of EA testing: FXTestify
Keep the coder going: Donate
User avatar
tomele
 
Posts: 1083
Joined: Tue May 17, 2016 3:40 pm
Location: Germany, Forest of Odes, Defending the Limes

When Indicators or Experts don't load

Postby tomele » Wed Sep 26, 2018 11:55 am

Here are the steps to take when indicators or experts don't load, especially when you are getting errors like "cannot open file <indicator/expert path and name>.ex4[x]":

1. In Empty4, click File/Open Data Folder to bring up File Explorer.
2. Completely shut down Empty 4.
3. In File Explorer, navigate to MLQ4/Indicators or MQL4/Experts.
4. Delete the EX4 and MQ4 file of the respective indicator/expert and the mqlcache.dat file.
5. Re-download the indicator/expert and put it into MLQ4/Indicators or MQL4/Experts.
6. Start Empty 4 and open an empty chart without anything.
7. Load your indicator/expert. It should work fine now.

Generally it is a good idea to delete the EX4 and MQ4 file of indicators/experts before downloading new versions, because Empty4 sometimes tries to treat new versions as different indicators/experts.


Cheers
Thomas
Happy pippin, Thomas ;)

It ain't what you don't know that gets you into trouble.
It's what you know for sure that just ain't so.
(Mark Twain)

Join the new era of EA testing: FXTestify
Keep the coder going: Donate
User avatar
tomele
 
Posts: 1083
Joined: Tue May 17, 2016 3:40 pm
Location: Germany, Forest of Odes, Defending the Limes

Clickin' your Way through TDesk

Postby tomele » Wed Sep 26, 2018 9:05 pm

Here are the ways to interact with TDesk. Most clickable parts are easily recognized by their bright cyan (aqua) button color. Each clickable item shows an explanatory tooltip if the mouse hovers over it.


CompactView Buttons

These are the buttons in the line above the dashboard:

Version
Clicking this button shows a window with some version information.

Account
Clicking this button shows a window with some basic account information.

Settings
Clicking this button shows a window with an overview of TDesk's settings.

Detected
Clicking this button shows a window with a list of all detected incoming signals and their providers.

Special
Clicking this button shows a window with information about signals having special attributes.

Help
Clicking this button shows a window with some usage help.


Table Header Button

This is located in the top left of the table. You can click it to switch between the following views:

All Pairs/Unrealized P/L
This is the default view and shows you all pairs you have configured in the TDesk inputs as well as their open trades and their unrealized profit/loss.

All Signals/Unrealized P/L
This view shows you all pairs having active directional signals as well as their open trades and their unrealized profit/loss.

Open Trades/Unrealized P/L
This view shows you all pairs having open trades as well as their open trades and their unrealized profit/loss.

Closed Trades/Realized P/L
This view shows you all pairs having closed trades as well as their closed trades and their realized profit/loss.

All Trades/Total P/L
This view shows you all pairs having open or closed trades as well as their open and closed trades and their total profit/loss.


Column Header Buttons

These are the buttons above the main columns of the table. Click them to show or hide details with respect to the respective main column. For example, you can click the "Open Trades" column header to see the buy and sell lots of each pair to know how you are(un)hedged. Whether these detail columns are shown on startup of TDesk can be configured in the inputs "Dashboard details" section.

Signals that have special attributes like being provided by EAX-Pins or contained in a list of veto/exit signals have headers coloured as clickable in the detailed signal list and a button "View" in the footer. Click on any of these to see explanations for the respective signal's attributes.

If you open up the "News Content" column by clicking the "News Offset" header, there will be a new label "Open FF Calendar" in the top right corner. You can click it to open the calendar in your standard browser.


Trade Pair Buttons

They are in the most left column of the table and are special as they can show the overall strength/weakness of both currencies in different colors. Click one currency to filter the whole table and show only pairs with this currency. Click it again (or the "Clear XXX filter" button in the footer) to delete the filter. Click the ">>" button to jump to the respective chart.


Signal Buttons

You can click any Super/Multi/Solo/Veto signal (or the signal age) to see a tooltip window that explains how the signal was calculated.


News Buttons

You can click any News offset or content to see a tooltip window that shows more details about the news event.


Column Footer Buttons

Sometimes little button texts like "Clear" or "Block" appear in the footer below certain columns. They are used to display, change or reset the details of that column. You will easily understand when you just try them.


Chart Management Buttons

These are the first 4 labels below the table. They should be self-explaining except one: "Touch all charts" ensures that all charts are in the right sequence for browsing through them by CTRL-F6.


Write History Button

TDesk collects signal history and writes it to disk once an hour. You can force flushing to disk by clicking this button.


Trade Advice Button

TDesk has a built-in SL/TP simulation that runs each night. You can see a window with the results by clicking this button. The window disappears by clicking the button again or anything else of TDesk.


Cheers
Thomas
Happy pippin, Thomas ;)

It ain't what you don't know that gets you into trouble.
It's what you know for sure that just ain't so.
(Mark Twain)

Join the new era of EA testing: FXTestify
Keep the coder going: Donate
User avatar
tomele
 
Posts: 1083
Joined: Tue May 17, 2016 3:40 pm
Location: Germany, Forest of Odes, Defending the Limes

How to use the TDesk "Trade Advice" feature

Postby tomele » Sun Nov 04, 2018 3:17 pm

Starting with version 4, TDesk has an unique (optional) feature called "Trade Advice".

Each first (server time) hour of the trading day, when markets are quiet, a simulation of six different stop loss and take profit strategies is run. This simulation starts at a random minute to distribute load in case multiple instances of TDesk are running on a machine.

With the default settings unchanged, typically the last 100-200 trades are taken into account and around 1500 different SL/TP settings are simulated over a period of 20 days. Depending on the machine, the whole process takes some seconds up to a few minutes. All settings are configurable to your needs.

The condensed simulation result will be shown on clicking the new label "Show trade advice". A new window will open that looks like this:

TradeAdvice.jpg

Let's go through the contents of that window. The top two lines show some statistical data about the simulation. In the middle there are the best results of each strategy grouped in two columns. The bottom line shows some buttons or runtime feedback. If you open the window the first time, it will most likely be empty as no strategies have been calculated yet. The first button "Force recalculation" can be used at any time to (re-)fill the window.

The strategies are shown in two columns: The left column shows simulation results ignoring the real trade exits (i.e. only exiting by the calculated SL or TP), while the right column shows simulation results respecting the real trade exits ( i.e. exiting by calculated SL or TP or the real trade exit, whatever comes first). In each column we have the three SL/TP calculation methods we now also have in Desky (fixed pips, price fractions and ATR percent).

So how do we interpret those results? The left column tells us something about our entries. In the above example the trades would have made 3795 pips when totally unmanaged. Well done, TDesk! The result could have even been improved by 45% applying simply a TP of 200 price fractions. The right column tells us something about our exits. In the example above they have been terrible compared to the unmanaged trades. The real trades had a much worse outcome, even negative. We could have improved that a bit by applying a SL of 40 and a TP of 200 price fractions or a SL of 40 and a TP of 70 ATR percent.

So far, so good. But only very unexperienced traders would think things are as easy as taking the best strategy, applying the advice to Desky's inputs and you are done. The above results are based on a very small sample, they can be due to special situations or isolated simulation highs. We all know that the law of large numbers is in play here. This is the reason for the two other buttons at the bottom. You will need Microsoft Excel, Open Office, Libre Office or something comparable to fully use their magic.

"Open protocol" opens a CSV file (TDesk-Strategy-Protocol.csv in MQL4/Files) showing results of the last simulation for each TP, SL and strategy. Filter and sort it until you can see sweet spots where changes of the parameters have no big effect on the results. In the example below, a SL of 0 (which means no SL at all) and a TP of 100-130 or 180-200 price fractions seem to be promising:

Protocol .jpg

"Open history" opens a CSV file (TDesk-Strategy-History.csv in MQL4/Files) showing the best results for each strategy and all simulations you ever calculated. This allows you to find sweet spots over time. As each simulation is run on a different set of trades and market situation, after a while the law of large numbers will kick in:

History.jpg


Caveats

As stated, don't rely too much on a single simulation even having analyzed the protocol properly. You can take it as a starting point, but do your homework regularly. To use the system profitably, you will have to analyze both files regularly, make notes, compare and think. Then it should give you good hints for your trade management.

Simulations will only be comparable if they are based on the same entry rules. If you change your TDesk entry logic or the signaling indicators, start the whole process anew. You can restrict the simulation start to a certain date in the inputs if you have changed your entry strategy. And don't forget to (archive and) delete the history file then. You would get a mess of different strategies otherwise.

If your exit strategy already uses SL's and/or TP's as sole exits, the right column strategies will be of no worth for you. Rely on the left column to adjust your SL and TP settings accordingly.

If your exit strategy already uses SL's and/or TP's together with any other exit logic, you must set up a "shadow" instance of TDesk that is identical, but without any SL or TP exits. Otherwise the simulation algorithm will get confused because it can't differentiate between your SL/TP exits and your other exits.

This new functionality is somewhat complex. If you don't use it, better disable it in the settings to save resources. Any questions and ideas can be discussed in the TDesk discussion thread.


Have fun.

Cheers
Thomas
You do not have the required permissions to view the files attached to this post.
Happy pippin, Thomas ;)

It ain't what you don't know that gets you into trouble.
It's what you know for sure that just ain't so.
(Mark Twain)

Join the new era of EA testing: FXTestify
Keep the coder going: Donate
User avatar
tomele
 
Posts: 1083
Joined: Tue May 17, 2016 3:40 pm
Location: Germany, Forest of Odes, Defending the Limes


Return to TDesk: A Thomas Special. The greatest trading tool ever.

Who is online

Users browsing this forum: No registered users and 0 guests