[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: Text-to- voice converter - Speakonia



PureBytes Links

Trading Reference Links

I use speakonia http://www.cfs-technologies.com/home/

here is some sample code that runs in the commentary window giveing
gains etc of "Selected" quotes..

Jack Kinsey

/*	COMMENTARY CODE  to display both Percentage & Dollar Changes of
Selected Range
You must change "AmtPerTrade" avg value to be what you might put on
any position.
Also change "Commisions" to generly reflect the Total amt per
position. (BUY & SELL commisions)
		This part could be enhanced for % commisions...
This code is to give general Percentages AND Amounts while eyeballing
trades.
You can also change where this Code assumes 50 share Lots..
*/
AmtPerTrade = 5000;  // Put in the avg amount to trade
Commisions = 26;	// Commisions per position
ShareLots = 10;          // Share Lots
// "Amount Per Trade = $ " + WriteVal(AmtPerTrade, 1.2); // Display
Amount per trade
// "Commisions = $ " + WriteVal(Commisions, 1.2); // Display
Commisions per position


Name() + "  -  " + FullName();
" ";"On " + WriteVal( BeginValue( DateTime() ), formatDateTime ) + " 
 Closed - " + WriteVal(BeginValue(C),1.2);
"On " + WriteVal( EndValue( DateTime() ), formatDateTime )+ "   Closed
- " + WriteVal(EndValue(C),1.2);

Bclose = BeginValue(C);  			// Get Begin Close
RawShares = AmtPerTrade / Bclose; 	// How many Raw Shares
LotsOf50 = int(RawShares / ShareLots); 		// Round down to "ShareLots"
field
Bought = ((LotsOf50 * ShareLots) * BeginValue(C)) + Commisions / 2;	//
Apply half Commisions to Total Purchase
Sold = ((LotsOf50 * ShareLots) * EndValue(C)) - Commisions / 2;		//
Same for Total Sold amount

" ";
PctChg = 100 * (Sold - bought) / Bought ;			// Calc % of Trade
"Precentage change is " +  WriteVal(pctChg, 1.2) + "%";	// Write % to
Commentary

Period = EndValue( BarIndex() ) - BeginValue( BarIndex() );			//
Calculate Numer of periods selected

Annulized = (pctChg / Period) * 365;		// Calc "SIMPLE" Annulized %
WriteVal(period, 1.0) + "  Periods " +  " Annualized @ " +
WriteVal(Annulized, 1.0) + "%"; // Write to commentary
" ";
"Shares " + WriteVal(LotsOf50 * 50, 1.0); 	// Write Shares purchased
"Cost - $ " + WriteVal(Bought, 1.2);		// Write Cost $
"Sold - $ " + WriteVal(sold, 1.2) + "     Net  $ " + WriteVal(Sold -
Bought, 1.2) ;	// Write Sold and Net $

// The ClipboardSet is used "Play" audiable summary if running
"Speakonia" or other speech Synth.
ClipboardSet(WriteVal( 100 * (Sold - bought) / Bought, 1.2 ) + "% . @" +
 WriteVal(Annulized, 1.0) + " Annualized..  "  + " Net "  + 
WriteVal(Sold - Bought, 1.0) ); 

--- In amibroker@xxxxxxxxxxxxxxx, "Ara Kaloustian" <ara1@xxxx> wrote:
> Anyone know of a FREE text to voice converter. Want to create some
.wav files for alerts.
> 
> Thanks
> 
> Ara




------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12h3fe21m/M=362343.6886682.7839641.1493532/D=groups/S=1705632198:TM/Y=YAHOO/EXP=1124339104/A=2894350/R=0/SIG=10tj5mr8v/*http://www.globalgiving.com";>Make a difference. Find and fund world-changing projects at GlobalGiving</a>.</font>
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/