You need to enable JavaScript in order to visit our site!
 
Logo PTMC
NAVIGATION
CANCEL
 
or via PTMC account
Restore password
or via PTMC account
Logo PTMC
NAVIGATION
or via PTMC account
Restore password
or via PTMC account
or via PTMC account
Restore password
or via PTMC account

[Beta] Break-even Button_v1.0.0

Hi everyone,

You know what I noticed? There are no examples on how to create custom buttons or custom columns. Well, I decided to do one for buttons. You should be able to figure out how to create columns based on this example.

So, it is not supported at this time for programmers to create parameters that can later be modified without messing with the code like it is for indicators and trading systems. The default breakeven offset is 2 pips. Why? Because for some brokers, they charge commissions. So I set it to 2 pips so that it will cover your commission costs and at least give you something from the trade. All you have to do is modify that value to your preference.

Breakeven plug-in settings in Algostudio

Also, if the current trade is in profit by more than the offset pips, an SL will be placed instead. Why did I do this? If you're up 20 pips in a trade and you have TP set to 40 pips, when you press the breakeven button, the SL will be set to breakeven +/- offset pips. This will allow this button to work with that strategy.

If you're not in profit by the offset pip amount, then the breakeven price +/- offset pips will be a TP order. I hope this makes sense. Do this on demo until you understand and until I decide that this should no longer be in beta testing mode. Please let me know if you find any bugs.

A member was already nice enough to do an example with XML parsing, so I didn't feel the need to continue on with the news indicator that I had planned to do. Thanks Burhay Vlad for sharing your knowledge.

Also, no worry, there will be a breakeven button for the chart trader that is in development. I'm working on multiple projects at once and trading forex too. I just wanted to have one for the positions panel too. Maybe later on, PFSoft could give the programmer the ability to add that custom button near the rest of the buttons on the panel. This will allow programmers to create parameters that can later be modified without going into the code.

Breakeven plug-in for PTMC platform in action

As with all my codes, PFSOFT and I are not responsible for any negative thing that may arise from the usage of this plugin. I'm not affiliated with PFSOFT, and I'm only a third-party developer.

As always, happy trading.


Note: Position manipulations are tested in Protrader demo account and work in a proper way. It is highly recommend further to test any automated trade action per each broker and on demo only.

Files
19.07.2016 96
Discussion
Join PTMC community to post your comments
  • Burhay Vlad 19.07.2016
PTMC is a professional trading platform that combines all the best charting and analytical tools to trade on different financial markets. It is developed by PFSOFT UK LTD, a global provider of trading technology for banks & brokers
© 2024. PTMC is based on Protrader technology
PFSOFT UK LTD
71-75, Shelton Street,
Covent Garden,
London, WC2H9SQ,
United Kingdom
Support & Development
PFSOFT Ukraine
Office #701
Mechnikova Street, 10B
49000, Dnipro, Ukraine
Contact us
Phone: +380 56 740 30 01
E-mail: info@protrader.org
Skype: PTMC_support
Find more ways to contact
Join us in social networks