NexusFi: Find Your Edge


Home Menu

 





Trade history on chart?


Discussion in Platforms and Indicators

Updated
      Top Posters
    1. looks_one rosasurfer 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 rosasurfer with 2 thanks per post
    2. looks_two rassi with 1 thanks per post
    3. looks_3 Joseph689 with 0.5 thanks per post
    4. looks_4 jtrade with 0.5 thanks per post
    1. trending_up 5,440 views
    2. thumb_up 9 thanks given
    3. group 4 followers
    1. forum 7 posts
    2. attach_file 5 attachments




 
 

Trade history on chart?

 
 
Joseph689's Avatar
 Joseph689 
San Jose, Ca
 
Experience: Beginner
Platform: MetaTrader 4
Broker: Interactive Brokers
Trading: Forex
Posts: 121 since Sep 2012
Thanks Given: 114
Thanks Received: 40

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

Started this thread

Can you help answer these questions
from other members on NexusFi?
Deepmoney LLM
Elite Quantitative GenAI/LLM
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
Futures True Range Report
The Elite Circle
Exit Strategy
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
Battlestations: Show us your trading desks!
26 thanks
The Program
18 thanks
 
 rosasurfer 
Sofia Bulgaria
 
Experience: Intermediate
Platform: MetaTrader, MultiCharts
Trading: Forex, ES, GC, strange synthetic creatures
Posts: 40 since Nov 2014
Thanks Given: 40
Thanks Received: 34

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

Attached Files
Elite Membership required to download: ShowTradeHistory.mq4
Elite Membership required to download: ShowTradeHistory.ex4
Thanked by:
 
 
Joseph689's Avatar
 Joseph689 
San Jose, Ca
 
Experience: Beginner
Platform: MetaTrader 4
Broker: Interactive Brokers
Trading: Forex
Posts: 121 since Sep 2012
Thanks Given: 114
Thanks Received: 40




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.

Started this thread
Thanked by:
 
 rosasurfer 
Sofia Bulgaria
 
Experience: Intermediate
Platform: MetaTrader, MultiCharts
Trading: Forex, ES, GC, strange synthetic creatures
Posts: 40 since Nov 2014
Thanks Given: 40
Thanks Received: 34


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

Thanked by:
 
 rosasurfer 
Sofia Bulgaria
 
Experience: Intermediate
Platform: MetaTrader, MultiCharts
Trading: Forex, ES, GC, strange synthetic creatures
Posts: 40 since Nov 2014
Thanks Given: 40
Thanks Received: 34

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

Thanked by:
 
 
jtrade's Avatar
 jtrade 
near Amsterdam
 
Experience: Advanced
Platform: NinjaTrader
Trading: (M)ES, (M)NQ
Posts: 328 since Feb 2010
Thanks Given: 442
Thanks Received: 336


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 :
).

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 :


Thanked by:
 
 
jtrade's Avatar
 jtrade 
near Amsterdam
 
Experience: Advanced
Platform: NinjaTrader
Trading: (M)ES, (M)NQ
Posts: 328 since Feb 2010
Thanks Given: 442
Thanks Received: 336

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.

 
 
rassi's Avatar
 rassi 
the congo
 
Experience: Advanced
Platform: North sea oil rig
Trading: Cl
Posts: 927 since Jun 2009
Thanks Given: 1,563
Thanks Received: 1,199


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 NexusFi Trade Journal
Thanked by:

 



Last Updated on September 10, 2017


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts