Trade history on chart? - futures io
futures io futures trading



Trade history on chart?


Discussion in Platforms and Indicators

Updated by rassi
      Top Posters
    1. looks_one MT4Survivor with 3 posts (6 thanks)
    2. looks_two Joseph689 with 2 posts (1 thanks)
    3. looks_3 jtrade with 2 posts (1 thanks)
    4. looks_4 rassi with 1 posts (1 thanks)
      Best Posters
    1. looks_one MT4Survivor with 2.0 thanks per post
    2. looks_two rassi with 1.0 thanks per post
    3. looks_3 jtrade with 0.5 thanks per post
    4. looks_4 Joseph689 with 0.5 thanks per post
    1. trending_up 2,958 views
    2. thumb_up 9 thanks given
    3. group 4 followers
    1. forum 7 replies
    2. attach_file 5 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Trade history on chart?

(login for full post details)
  #1 (permalink)
San Jose, Ca
 
Experience: Beginner
Platform: MetaTrader 4
Broker: Interactive Brokers
Trading: Forex
 
Joseph689's Avatar
 
Posts: 121 since Sep 2012
Thanks: 113 given, 37 received

Hello,

Anyone know of a script/indicator that will plot the trade history on the MT4 chart?

Example: Plot a simple line from open to close, with the result in $ by the close?

I recall seeing this exact script/indicator on the Free area of a site selling a trading system. Have been looking everywhere and can't seem to retrace my steps back to it.

Any help would be appreciated!!

Thanks.

Joseph

Reply With Quote

Can you help answer these questions
from other members on futures io?
TOS script help - crossover with alerts - help please?
ThinkOrSwim
FYI plot bug & workaround: changing color or width is delayed 1 bar
EasyLanguage Programming
Chart text fixed and move with time
NinjaTrader
TOS Custom Implied Volatility Rank Watchlist/Scanner Column
ThinkOrSwim
Need risk management add for NT8
NinjaTrader
 
 
(login for full post details)
  #2 (permalink)
Frankfurt Germany
 
Experience: Intermediate
Platform: MetaTrader, MultiCharts
Trading: Forex, ES, GC, strange synthetic creatures
 
Posts: 40 since Nov 2014
Thanks: 31 given, 32 received

I extracted the function from one of my indicators and put it into a script for you.

Attached Files
Register to download File Type: mq4 ShowTradeHistory.mq4 (2.6 KB, 60 views)
Register to download File Type: ex4 ShowTradeHistory.ex4 (3.4 KB, 29 views)
Reply With Quote
The following 4 users say Thank You to MT4Survivor for this post:
 
(login for full post details)
  #3 (permalink)
San Jose, Ca
 
Experience: Beginner
Platform: MetaTrader 4
Broker: Interactive Brokers
Trading: Forex
 
Joseph689's Avatar
 
Posts: 121 since Sep 2012
Thanks: 113 given, 37 received




MT4Survivor View Post
I extracted the function from one of my indicators and put it into a script for you.

Hello MT4Survivor,

Thank you for taking the time to help!

The script you were so kind to modify plots a line from "open" to "close", and I actually needed one other component, and it is the trade result by the "close", (pips or dollar option) as per my attachment.

Hopefully with the options to change the colors of the rectangular box, plotted line, and trade result numbers.

I would be happy to pay for your time; just please send me a private message as to payment.

I really appreciate your time.

Reply With Quote
The following user says Thank You to Joseph689 for this post:
 
(login for full post details)
  #4 (permalink)
Frankfurt Germany
 
Experience: Intermediate
Platform: MetaTrader, MultiCharts
Trading: Forex, ES, GC, strange synthetic creatures
 
Posts: 40 since Nov 2014
Thanks: 31 given, 32 received


Quoting 
... The script you were so kind to modify plots a line from "open" to "close", and I actually needed one other component, and it is the trade result by the "close", (pips or dollar option) as per my attachment.

Hopefully with the options to change the colors of the rectangular box, plotted line, and trade result numbers.
...


In fact what you are asking for is already there but not as obvious as a price marker. Just hover over the close arrow and you will find the closed profit in the arrow's tooltip (inkl. commissions and swaps).



An additional marker is possible but hard to read once you have many closed orders around the same spot. Another point: The MetaTrader built-in icon (similar to the one you depicted in your screenshot) works only for price markers as it displays the price of the point where the marker is located. Constructing your own marker with a different text (ie. your closed profit) is possible but doesn't scale well when zooming in/out or switching timeframes. This is because a self made marker would not be anchored at the center of a custom grafic but at one of it's corners. Those corner points change while zooming/switching timeframes. Sometimes the positions is alright, sometimes not. So I prefer an arrow with a tooltip as it will always be correctly located. Hopefully you agree to this because I will not spend time implementing it as the result is not useful to me.

regards

Reply With Quote
The following user says Thank You to MT4Survivor for this post:
 
(login for full post details)
  #5 (permalink)
Frankfurt Germany
 
Experience: Intermediate
Platform: MetaTrader, MultiCharts
Trading: Forex, ES, GC, strange synthetic creatures
 
Posts: 40 since Nov 2014
Thanks: 31 given, 32 received

Hi @Joseph689

in the last six years I developed a framework for all kind of MetaTrader functionalities. In PHP, in C, Bash scripting and of course in MQL. I have my own tick database and even my own price feed for synthetic instruments. In fact I developed so many things that it is hard for me to switch to a different platform because it would take me at least a year or two to develope and port all of this for example to MultiCharts. Some things seem to be impossible to port to MC or to NinjaTrader.

For trading MT4 is great, testing is OK, the optimizer sucks. However, with C/C++ coding skills almost everything can be done. Thanks to the Win32 API you can write your extensions as a DLL and hack your way through the terminal. In this regard only SierraCharts offers a similar openness.

If you or somebody else need(s) platform or tools advice just post it. As always, it's mostly a matter of time

Best regards,
Peter

Reply With Quote
The following user says Thank You to MT4Survivor for this post:
 
(login for full post details)
  #6 (permalink)
near Amsterdam
 
Experience: Advanced
Platform: NinjaTrader
Trading: 6B, 6E
 
jtrade's Avatar
 
Posts: 323 since Feb 2010
Thanks: 426 given, 331 received


MT4Survivor View Post
I extracted the function from one of my indicators and put it into a script for you.

Thank-you so much for this.

I am now moving my FX trading from NT8 to MT4, having found the two "missing links", one of which for me is your indicator (the other is this for Chart Trading : https://www.youtube.com/watch?v=YsODirOGmwg ).

Of course, if we're all forcibly migrated to MT5 within a year or so (it'll be the brokers' call), then I might go back to NT8, which by then should be fully debugged ;-)

Here's a screenshot of a Ger30 CFD chart - one minute, just to play around with this afternoon, as I'm using H1 & H4 for FX - with H1 and a 34 tick chart on either side in this workspace :


Reply With Quote
The following user says Thank You to jtrade for this post:
 
(login for full post details)
  #7 (permalink)
near Amsterdam
 
Experience: Advanced
Platform: NinjaTrader
Trading: 6B, 6E
 
jtrade's Avatar
 
Posts: 323 since Feb 2010
Thanks: 426 given, 331 received

Just a brief update of my post above : I discovered that the "Wise-EA" ChartTrader-type tool for which I posted the link above is not needed (& I also found it to be not quite 100% reliable).

To trade directly from the chart you can either have the optional "One Click Trading" buttons on screen for Market orders, or as I prefer do as follows:

Right click>Trading>select Limit or Stop order at the level at which you click on chart. If it's a Stop order some way from price, you can manually add Stop & Target levels if desired or - and this I really like & have only just discovered - once filled, just left click on the order line and drag in either direction to automatically create stop or target levels. Very fast and simple.

For FX & CFD trading, I no longer see any reason to use NT8, which I find unstable even with my very simple charts (I'm using an i5 laptop with SSD, so maybe NT8 is much more resource hungry, as some people state on the relevant thread). MT4 has yet to crash on me in several months of free, Live use.

Reply With Quote
 
(login for full post details)
  #8 (permalink)
the congo
 
Experience: Advanced
Platform: North sea oil rig
Trading: Cl
 
rassi's Avatar
 
Posts: 917 since Jun 2009
Thanks: 1,508 given, 1,160 received


jtrade View Post
Just a brief update of my post above : I discovered that the "Wise-EA" ChartTrader-type tool for which I posted the link above is not needed (& I also found it to be not quite 100% reliable).

To trade directly from the chart you can either have the optional "One Click Trading" buttons on screen for Market orders, or as I prefer do as follows:

Right click>Trading>select Limit or Stop order at the level at which you click on chart. If it's a Stop order some way from price, you can manually add Stop & Target levels if desired or - and this I really like & have only just discovered - once filled, just left click on the order line and drag in either direction to automatically create stop or target levels. Very fast and simple.

For FX & CFD trading, I no longer see any reason to use NT8, which I find unstable even with my very simple charts (I'm using an i5 laptop with SSD, so maybe NT8 is much more resource hungry, as some people state on the relevant thread). MT4 has yet to crash on me in several months of free, Live use.



There is another but better order entry than the wise one. Called easy order. Let me know if you want it posted if you can't find it anywhere. It's very good and stable with no issues. Has some useful functions too.


Sent from my iPhone using Tapatalk

Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to rassi for this post:


futures io Trading Community Platforms and Indicators > Trade history on chart?


September 10, 2017


Upcoming Webinars and Events
 

Introducing Edge Pools: Prop Pricing Model w/Edge Clear

Jul 9
 

Every journal equals ten meals for the hungry

Now
     



Copyright © 2020 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts